OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

Insert Syntax Error - Solutions ???

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Base
View previous topic :: View next topic  
Author Message
zkold
Newbie
Newbie


Joined: 29 Mar 2006
Posts: 1

PostPosted: Thu Mar 30, 2006 12:03 am    Post subject: Insert Syntax Error - Solutions ??? Reply with quote

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
View user's profile Send private message
DrewJensen
Super User
Super User


Joined: 06 Jul 2005
Posts: 2616
Location: Cumberland, MD

PostPosted: Thu Mar 30, 2006 4:58 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Base All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
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