You do not need to encapsulate the tables in the query if they do not have space or are reserved.
INSERT INTO 'lms'.'test2' ('trn') VALUES ('17') // This makes no real sense to the db. It should be: INSERT INTO lms.test2 (trn) VALUES ('17')
If the trn column accepts numbers, it really should be:
INSERT INTO lms.test2 (trn) VALUES (17)
In MySQL, you can use the oblique quote character to encapsulate names, but not strings. To enter a string in a query, you will need to use regular quotation marks, such as ' .
You can:
select `someTable`.`someColumn` from `someTable`
but not this:
select someTable.someColumn from someTable where myName=`Tommy`;
Proper use:
select someTable.someColumn from someTable where myName='Tommy';
source share