返回顶部

SQL -注释方法

MySQL

单行注释

1.使用"#"

#单行注释
select * from students;

2.使用 "-- " 注意,--后跟有一个空格

-- MySQL单行注释方法二
select * from students

3.多行注释: 使用/* */

/*
此处为注释....
*/
select * from students;

 

oracle

单行注释:-- 例如

--单行注释
SELECT * FROM talbe;

多行注释: /* */ 例如:

/*
此处
为多行注释内容
*/
SELECT * FROM table;

 

posted @ 2020-04-02 10:22  Be-myself  阅读(13774)  评论(0编辑  收藏  举报
levels of contents 点击查看具体代码内容