| View previous topic :: View next topic |
| Author |
Message |
zkold Newbie

Joined: 29 Mar 2006 Posts: 1
|
Posted: Thu Mar 30, 2006 12:03 am Post subject: Insert Syntax Error - Solutions ??? |
|
|
k , now i have already have a table for me to insert data,
but currently i wanna try to insert as syntax....
like maybe :
INSERT INTO aircraft VALUES ('123', '345', '456');
but there is an error prompting :
===The given command is not a SELECT statement.
Only queries are allowed
INSERT INTO aircraft VALUES ('123', '345', '456');===
current tat when i compile and execute the command but some how keep giving me this error prompt.
pls asap,need help here...thx |
|
| Back to top |
|
 |
DrewJensen Super User


Joined: 06 Jul 2005 Posts: 2616 Location: Cumberland, MD
|
Posted: Thu Mar 30, 2006 4:58 am Post subject: |
|
|
I am thinking you are attempting to issue the command via a query builder window, witht he designer turned off. Won't work - you already know the error message you will get.
Open the SQL window insetad. Tools>SQL. The command will work just fine there also. With one change, you MUST double quote the table name - assuming this is an HSQL database. The SQL window will cast your command to all uppercase otherwise...and then fail with table not found. _________________ Blog - http://baseanswers.spaces.live.com/ |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|