sql - Missing comma error in insert statement -
sql - Missing comma error in insert statement -
insert service (customer_id,service_id,cost number) values ('cust001',100,'80');
when seek insert service details in sql showing missing comma error.
please help me verify , correct.
the problem in cost number
column. spaces not supported.
insert service (customer_id,service_id,cost number) values ('cust001',100,'80'); ^^^^^^^^^^^
some fixes include:
removingnumber
making column cost
. placing brackets or ticks around column depending on platform: sql server [cost number]
. mysql `cost number`
. if using ms access or perhaps oracle, might trying cast number
in case want cast value, not column.
sql oracle insert
Comments
Post a Comment