做了一个表sicence_fiction_film,如图所示:,想删除名字列中aaa这一行,输入如下:
delete from sicence_fiction_film where name=aaa;
结果却报错说不知道列aaa在哪儿?
求解答?
做了一个表sicence_fiction_film,如图所示:,想删除名字列中aaa这一行,输入如下:
delete from sicence_fiction_film where name=aaa;
结果却报错说不知道列aaa在哪儿?
求解答?
收起
delete from sicence_fiction_film where name
='aaa';
name在数据库是varchar类型的要加上单引号,就好比java里面的字符串要加上双引号一样,否则就会报错。
报告相同问题?