INSERT INTO 'tblJobNumbers'
VALUES (NULL, '3006', '05', 'THISTHS', 0, 'JOBLOCATION', '', '',
'JOBCOMMENTS', 'ES', '01/14/2013', '01/15/2013,
'', '', '', 'CRS-2', '25000')
There’s my statement
jobID int(11) NOT NULL AUTO_INCREMENT COMMENT 'referenced by tblJobResources.jreJobID',
jobNumber int(4) NOT NULL,
jobPrefix int(2) NOT NULL COMMENT 'reference tblJobPreix.jprID',
jobCustomerTID varchar(7) NOT NULL,
jobCustomerID int(11) NOT NULL COMMENT 'reference tblCustomers.cusID',
jobLocation text NOT NULL,
jobContactName text NOT NULL,
jobContactInfo text NOT NULL,
jobComments text NOT NULL,
jobSoldBy varchar(2) NOT NULL COMMENT 'reference tblUsers.userID',
jobStartDate varchar(10) NOT NULL,
jobEstCompleteDate varchar(10) NOT NULL,
jobCompleteDate varchar(10) NOT NULL,
jobAcctgMethod text NOT NULL,
jobBillMethod text NOT NULL,
jobProduct varchar(10) NOT NULL,
jobProductAmount varchar(10) NOT NULL,
PRIMARY KEY (jobID)
There’s my table dump showing layout and datatypes. What am I missing? Please someone help, this is my work’s laptop and I don’t think “but the stupid code” is a valid excuse for destroying company property.
Error Message:
#1064– You have an error in your SQL syntax; check the manual that
corresponds to your MySQL server version for the right syntax to use
near ”tblJobNumbers’ VALUES (NULL, 3006, 05, ‘THISTHS’, 0,
‘JOBLOCATION’, ”, ”, ‘JO’ at line 1.
remove single quotes around the tableName, it will be converted to a string. (not a table anymore)
also, as you can see you have forgot to close the single quote around the date value.