是否可以在A&#x27 ;;&#x27之后写评论。在SQL查询中?
在此代码中:
SELECT * FROM Customers
ORDER BY CustomerName ASC; -- some comment
如果评论不是查询/代码的一部分,为什么我不能在'; 'char之后编写它? (只是在W3Schools示例DB中尝试过)
如何在查询末尾(如果有的话)创建注释?
提前致谢
In this code:
SELECT * FROM Customers
ORDER BY CustomerName ASC; -- some comment
If a comment is not part of the query/code, why can't I write it after the ';' char?
(Just tried it in w3schools example DB)
How can I otherwise create comments at the end of the query, if at all?
Thanks in advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您有复杂的SQL-Script,这些评论使其可以更好地阅读,从而有意义。如果您只需要查询,则该评论毫无用处。
If you have a complex SQL-Script, the comments make it better readable so it make sense. If you need the query only once the comment is useless.