Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
webhead_1 #1
Database Tables Creation
With Coldfusion 7.0 can you create a new table within a MS-SQL database, and if so where can I find some documentation on that process?
webhead_1 Guest
-
Help with temp database creation
Hi, I'm building an ecommerce website. When a user logs into my site, I want to create a temporary table (say called 'ShoppingCart') in my... -
Informix database creation
Hi all, I'm new to Informix db (as you can probably deduct from my post). I'm trying to add multiple dbspaces on one raw partition on Solaris 8... -
Photo database creation Simlified????
On Fri, 01 Aug 2003 20:28:36 GMT, "W" <w@shaw.ca> expostulated via the miricale of wet string: Are you wanting to create multipule databases or... -
How can I query for any of the 5 max value (specified during database creation)?
Hi, I'm wondering if there is a way for me to query for the maxlogfiles, maxlogmembers, maxdatafiles, maxinstances & maxloghistory value? At the... -
Database creation fails
Hello All, I am a newbie to the database administartion. we are using oracle 9.0.1 on solaris 2.8. I am trying to create a database and ended... -
philh #2
Re: Database Tables Creation
Books On Line. Look it up on msdn.microsoft.com. Also search these forums for the statement "CREATE TABLE".
philh Guest
-
Code_Guy #3
Re: Database Tables Creation
This creates the table:
<cfquery datasource="foo">
CREATE TABLE myfoo(
foo1 (12),
foo2 bit DEFAULT 0,
foo3 nvarchar (500)
)
</cfquery>
This will check for its existence:
<cfquery datasource="foo" name="qchkfoo">
SELECT *
FROM INFORMATION_SCHEMA.COLUMNS
WHERE TABLE_NAME = 'myfoo'
</cfquery>
and drop it:
<cfif qchkfoo.recordcount GT 0>
<cfquery datasource="foo">
DROP TABLE myfoo
</cfquery>
</cfif>
Code_Guy Guest



Reply With Quote

