Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Ora-00936 Missing Expression

Status
Not open for further replies.

rajeshgooner

IS-IT--Management
Feb 3, 2004
31
0
0
GB
I am trying to insert records using toad into an oracle 9i database.

The table definition is as follows:

Name: Answer

id - Number(19) not nullable
question_id - number (19) not nullable
respondent_id - number (19) not nullable
survey_id - number(19) not nullable
scalar - number (10) nullable
multiple_choice_option_id - number (19) nullable
free_text - varchar2(255) nullable

The insert statement is:

insert into answer values (355,233,356,208,263,' ',);

This keeps on bringing up missing expression error. I've checked and there are no referential errors or key violations as all required fields have valid ids in their source tables. It's probably a very silly solution but is pushing me towards punching this flat screen......
 
Code:
insert into answer values (355,233,356,208,263,' ',' ');

if you want spaces in the last two columns.

[bandito] [blue]DBomrrsm[/blue] [bandito]

[blue]Software code, like laws and sausages, should never be examined in production[/blue][black] - [/black][purple]Edward Tenner[/purple]
 
Thanks but as there all but one of the fields are numerical, how can I enter a space. I tried your statement and it came up with the expected invalid number error.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top