bataraguru
Programmer
Hi..
I want to check the table in my database exist before I create a new one.
How can I do that? And how can i print out the table name using query??
Thanks,
- zaidi -
------
<CFQUERY NAME="create_table" DATASOURCE="car_select">
-->
I want to check if the table name exist or not?
If exist the table name will increase 1 (+1)
If not exist, will create a same name table name.
-->
CREATE TABLE temptbl_#GetCountID.TotalCount#
(
ID INTEGER CONSTRAINT ID PRIMARY KEY,
carmake TEXT,
carmodel TEXT,
class TEXT,
powersteering TEXT,
gear TEXT,
capacity TEXT,
budgetMinimum INTEGER,
budgetMaximum INTEGER,
condition TEXT,
link TEXT);
</CFQUERY>
I want to check the table in my database exist before I create a new one.
How can I do that? And how can i print out the table name using query??
Thanks,
- zaidi -
------
<CFQUERY NAME="create_table" DATASOURCE="car_select">
-->
I want to check if the table name exist or not?
If exist the table name will increase 1 (+1)
If not exist, will create a same name table name.
-->
CREATE TABLE temptbl_#GetCountID.TotalCount#
(
ID INTEGER CONSTRAINT ID PRIMARY KEY,
carmake TEXT,
carmodel TEXT,
class TEXT,
powersteering TEXT,
gear TEXT,
capacity TEXT,
budgetMinimum INTEGER,
budgetMaximum INTEGER,
condition TEXT,
link TEXT);
</CFQUERY>