Jump to content

how do you check if a databse already exists?


kellz

Recommended Posts

hey SQL people^^

 

how can i check if the database "addressbook" already exists before i try to make it?

i know there are commands like IF NOT EXIST and IF EXIST but i don't know what order to use them in..

I tried IF NOT EXIST addressbook CREATE DATABASE addressbook

but it didn't work lol

 

thx guys!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.