Conversion failed when converting the varchar value '1.1' to data type int

Advertisements I have two columns, one of data type Smallint and the other int. I am trying to concatenate the two columns and a ‘.’ to produce one final value but I keep getting the "Conversion failed when converting the varchar value ‘1.1’ to data type int error". For instance, if I have ‘1’ in… Read More Conversion failed when converting the varchar value '1.1' to data type int

Why can't I use INSERT INTO … to insert value with whitespace into VARCHAR (ERROR 1064 (42000))?

Advertisements mysql> INSERT INTO Departments VALUES (1, ‘Accounting’), -> (2, ‘Human Resources’), -> (3, ‘Marketing’); ERROR 1064 (42000): 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 ‘Resources’), (3, ‘Marketing’)’ at line 2 I have tried using " instead… Read More Why can't I use INSERT INTO … to insert value with whitespace into VARCHAR (ERROR 1064 (42000))?