这是我的代码,我在 SELECT *FROM 判断时遇到错误;
CREATE VIEW judge_vw AS(
SELECT *FROM judge;
WHERE suburb='adelaide';
order by 'judge_id';`enter code here`
with check option;
insert into judge_vw values(',judge_id 6','schofield','adelaide,')
update judge_vw set name='russell'where names='jones'
delete from judge_vw where judge_id=7;
drop view if exists judge_vw
);
最佳答案
你的语法是错误的,只保留最后一个;在命令末尾并删除所有其他命令 不要对列名使用引号(例如:judge_id),删除无用的(并使用 chcek
CREATE VIEW judge_vw AS
SELECT * FROM judge
WHERE suburb='adelaide'
ORDER BY judge_id;
您插入的内容似乎包含错误的逗号
insert into judge_vw values('judge_id 6','schofield','adelaide');
关于mysql - mysql 代码遇到问题,不断出现错误 1064,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43109994/