I'm testing some simple scripts to get the feel of MySQL in Workbench. I've created a database called 'myschema' and am trying to execute the following script in the scripting shell
ALTER TABLE 'myschema'.'employee' DROP COLUMN 'date_of_birth' ;
However, I always get the following error:
Uncaught exception while executing C:\Users\Owner\AppData\Roaming\MySQL\Workbench\scripts\deletion.py: File "c:\users\owner\appdata\roaming\mysql\workbench\scripts\deletion.py", line 9
ALTER TABLE 'myschema'.'employee' DROP COLUMN 'date_of_birth' ;
SyntaxError: invalid syntax
This is a very basic command, so I'm confused as to why it's not working. I've tried getting rid of the quotes and the 'myschema' part, but I keep getting the same error. What am I doing wrong?
In fact, I've found that no SQL queries at all work in the scripting shell. They all return syntax errors
SOLVED: I was using the wrong editor. Was solved by using the SQL Query Editor instead of the Scripting Shell