sql where 多个条件进行查询导出,请高手指点!!sql where 多个条件进行查询导出,请高手指点!!_百度知道
你没有bai指定别名du,有歧zhi义了dao,改zhuan成下面的shu:
SELECT id,title,softlinks FROM dede_addonsoft d1,dede_archives d2 WHERE d1.aid=d2.id and d2.arcrank=0 and d2.typeid=13 into outfile 'e:\1.txt'
SELECT b.id,b.title,a.softlinks FROM dede_addonsoft a,dede_archives b WHERE a.aid=b.id and b.arcrank=0 and b.typeid=13 and a.typeid=13 into outfile 'e:\1.txt'