mysql 数据库操作筛选查找、新建、导出

查找
select * from `dede_addonarticle` where typeid="12"
查找表dede_addonarticle ,字段 typeid为12的信息;
----------------------------------------------------------------------
select * from `dede_addonarticle` where `body` LIKE '%nihao%';
查找某表里字段内容里含有  nihao 的信息
-----------------------------------------------------------------------
新建数据表:将查询到信息存在新建的表上
CREATE TABLE `new` (select * from `dede_addonarticle` where `body` LIKE '%nihao%');
-----------------------------------------------------------------------
导出数据表
select * from `dede_addonarticle` where `body` LIKE '%nihao%' into outfile 'C:/Users/Administrator/Desktop/103.xlsx';
posted @ 2017-02-16 16:33  林育松  阅读(918)  评论(0编辑  收藏  举报