LinuxConvert2010 Newbie

Joined: 23 Feb 2010 Posts: 1
|
Posted: Tue Mar 02, 2010 11:57 am Post subject: Unexpected token in SQL [SOLVED] |
|
|
I'm relatively new to OpenOffice and SQL. What exactly does an unexpected token mean in the context of creating a table from another table?
For example, I have written the following syntax (I've paraphrased with the table and column names) : CREATE TABLE TableName AS (SELECT Column1, Column2, Column 3 FROM TableName2);
When I run this or attempt to, I receive the following error message:
1: Unexpected token AS, requires ( in statement [CREATE TABLE TableName AS]
It does seem to be a syntax error, but I can't seem to resolve it. Any suggestions?
Last edited by LinuxConvert2010 on Mon Mar 08, 2010 7:06 am; edited 1 time in total |
|