hi,
Is there any sql query to check if a table exists already in a database?
Thanks in advance.:)
vs.vaidyanathan 18 Newbie Poster
Recommended Answers
Jump to Postselect count(*) from information_schema.tables where table_name='SEARCH_TABLE_NAME' AND TABLE_SCHEMA='SEARCH_DATABASE_NAME'
OR
If you want to create new table you may also usecreate or replace syntax........
Jump to PostFollowing the link for some details:
All 8 Replies
urtrivedi 276 Nearly a Posting Virtuoso
tyson.crouch 6 Junior Poster
griswolf 304 Veteran Poster
vs.vaidyanathan 18 Newbie Poster
vs.vaidyanathan 18 Newbie Poster
vs.vaidyanathan 18 Newbie Poster

rajarajan2017
vs.vaidyanathan 18 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.