Help in code!

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
mohan
Forum Newbie
Posts: 1
Joined: Wed Sep 15, 2004 4:51 pm

Help in code!

Post by mohan »

I wanna code:

create database by name Mohan,if there is database by this name creat it by name mohan1 if there is mohan1 create it by name mohan2....and so on.

How can I do that? how can I check the existance of database?

thanx

Mohan
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Code: Select all

SHOW DATABASES
search in the results...
Post Reply