Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
这种语法有什么错误?
SELECT empno, sal*.075, ROUND(sal*.075, 2) bonus FROM emp WHERE ename LIKE ‘%A%’;
没有给出错误的sql语句是下面写的。
SELECT empno, sal*.075, ROUND(sal*.075, 2) bonus FROM emp WHERE ename LIKE '%A%';
‘%A%’;
对比
'%A%';
第一个有花哨的'字符。通常的原因是 Outlook 的自动更正。
'
第一个问题是单引号。SQL不接受那个报价。我在我的键盘上找不到那个。可能是您从某处复制了查询。
SQL