查看索引: > SHOW INDEX FROM table_name; > SHOW KEYS FROM table_name; 删除索引: > DROP INDEX index_name FROM table_name; > drop index test_index from contents; 创建普通索引: > CREATE INDEX 索引名称 ON 表名称 (`列名称`); > create index test_index ON contents(…
//1.增 public int insert(Port port) ; //2.删 public int deleteM(String id);//3.改 public int update(Port port); //1.增 <insert id="insert" parameterType="com.cn.eport.pojo.Port" resultType="Integer,String ,Long ,class"> INS…
数据查询语法(DQL) DQL就是数据查询语言,数据库执行DQL语句不会对数据进行改变,而是让数据库发送结果集给客户端. 语法: SELECT selection_list /*要查询的列名称*/ FROM table_list /*要查询的表名称*/ WHERE condition /*行条件*/ GROUP BY grouping_columns /*对结果分组*/ HAVING condition /*分组后的行条件*/ ORDER BY sorting_columns /*对结果分组*/…