2019年4月11日

php代码进行跨域请求处理

摘要: 以下的函数作为每个请求的前置操作 (thinkphp框架) public function appInit(&$params) { header('Access Control Allow Origin: '); header("Access Control Allow Headers: token 阅读全文

posted @ 2019-04-11 20:55 果然朝辉 阅读(730) 评论(0) 推荐(0) 编辑

SQL语句执行顺序

摘要: from tables where predicae1 group by columns having predicae1 select columns order by columns limit start , offset ; 阅读全文

posted @ 2019-04-11 18:54 果然朝辉 阅读(196) 评论(0) 推荐(0) 编辑

用Group by分组后,取每组的前3条记录,怎么取?

摘要: 使用子查询进行查询 SELECT FROM home_content a WHERE ( SELECT count(id) FROM home_content WHERE class_link = a.class_link AND id a.id ) 阅读全文

posted @ 2019-04-11 18:22 果然朝辉 阅读(4191) 评论(0) 推荐(0) 编辑

导航