MySQL
單行注釋
1.使用"#"
#單行注釋 select * from students;
2.使用 "-- " 注意,--后跟有一個空格
-- MySQL單行注釋方法二 select * from students
3.多行注釋: 使用/* */
/* 此處為注釋.... */ select * from students;
oracle
單行注釋:-- 例如
--單行注釋 SELECT * FROM talbe;
多行注釋: /* */ 例如:
/* 此處 為多行注釋內容 */ SELECT * FROM table;