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:

removing number 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

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

c# - Create a Notification Object (Email or Page) At Run Time -- Dependency Injection or Factory -

Set Up Of Common Name Of SSL Certificate To Protect Plesk Panel -