单行注释

1.使用"#"

#单行注释
select * from students;

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

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

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

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

 

oracle

单行注释:-- 例如

--单行注释
SELECT * FROM talbe;

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

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

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-30
  • 2021-05-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-09-26
  • 2021-11-18
  • 2021-12-09
  • 2021-08-19
  • 2021-07-07
  • 2022-12-23
相关资源
相似解决方案