Jump to content

Insert Values with auto increment field


Mateobus

Recommended Posts

This is probably an easy question. I want to insert rows into my database. So say i had like an auto increment id, employee_name, and job_description columns in my table.  How would I write the insert query without specifying an ID:

INSERT INTO job SET values(?, $employee_name, $job_description)

what should i put as the first argument?
Link to comment
https://forums.phpfreaks.com/topic/26487-insert-values-with-auto-increment-field/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.