Using CREATE TABLE with Currency and YES/NO

Tsango

Registered User.
Local time
Today, 15:42
Joined
Mar 31, 2006
Messages
64
Using CREATE TABLE with YES/NO Field

How do I create a table using CREATE TABLE for fields that are Currency and Yes/No fields???

This does not work.

SQL = "CREATE TABLE Voucher_Details (VoucherReference NUMBER, ProductID NUMBER, Cost CURRENCY, Redeemed BOOLEAN)"
 
Last edited:
Change BOOLEAN to BIT. Oh and don't forget the semicolon at the end of the statement, before the single quotation mark.

"CREATE TABLE VoucherDetails (VoucherReference NUMBER,ProductID NUMBER,cost CURRENCY Redeemed BIT);"
 
And of course a comma is required between CURRENCY and Redeemed !!! :-)
 

Users who are viewing this thread

Back
Top Bottom