返回顶部
摘要: 1、利用order by 判断字段数。 2、利用union select 联合查询,获取表名。 0' union select 1,group_concat(table_name),3 from information_schema.tables where table_schema=databas 阅读全文
posted @ 2020-05-11 18:57 御用闲人 阅读(509) 评论(0) 推荐(0) 编辑
摘要: 表结构及数据 DROP TABLE IF EXISTS `course`; CREATE TABLE `course` ( `name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL, `course_nam 阅读全文
posted @ 2020-05-11 18:56 御用闲人 阅读(1093) 评论(0) 推荐(0) 编辑
摘要: select * from table order by n n 表示select里面的第n个字段,整段sql的意义是:查询出来的结果,按照第N个字段排序 阅读全文
posted @ 2020-05-11 18:06 御用闲人 阅读(2737) 评论(0) 推荐(0) 编辑