首页| 版块| 我的| 发帖| 消息
主题:遍历数组
zhangjingyu 
select aid,aname,ownerid,photonum from pw_cnalbum where atype='1'
into outfile '3.txt'
FIELDS TERMINATED BY ','
ENCLOSED BY '"'
LINES TERMINATED BY '\n'

上面的语句可以在数据库中成功执行,却一直没能通过php文件成功。最后只能放弃,继续尝试研究主楼提到的方法。最后,基本可以实现我的想法吧。文件的保存路径是:
F:/zhangjingyu/phpwind/phpStudyB/MySQL/data/test/3.txt

内容大致如下(“\n”换成了“”):
"14","默认相册","1","13""15","无线电2册","1","6""16","无线电3册","1","10""17","温馨家园","1","5""18","无线电301册","1","11""19","无线电300册","1","0"
zhangjingyu回帖于2024-04-04 22:15[查看电脑版]
下一楼»:回头说标题,其实我最后做到的还是最笨的穷举法(现在只有3个。文件中穷举24个相册,应该够用了 ..
«上一楼:aid aname photonum
14 默认相册 11
15 莘县一中2023.12 12
16 温馨家园 0
恭喜 ..

查看全部回帖(12)
«返回主帖