Trying to add a new column into pre-existing table with the following command:
ALTER TABLE randomquestions ADD Total AS R1_Number + R2_Number + R3_Number + R4_Number PERSISTED I get this error:
#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 'AS R1_Number + R2_Number + R3_Number + R4_Number PERSISTED' at line 2
Can anyone tell me where I went wrong with the syntax?
DDLof your table#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL serverMicrosoft SQL Server or MySQL.