LMSouq
general-dev Open

If table exists drop table then create it, if it does not exist just create it

GE
George
1 month ago
3 views
Problem Description
I'm stumped, I don't know how to go about doing this. Basically I just want to create a table, but if it exists it needs to be dropped and re-created, not truncated, but if it doesn't exist just create it. Would anyone be able to help?

AI-Generated Solution

Powered by LMSouq AI · GPT-4.1-mini

✓ Solution Ready
Analyzing problem and generating solution…
Was this solution helpful?
Back to Knowledge Base