问题描述
我是编程新手,请与我合作.我有以此形式保存在cookie中的数据. 1:3456,2:12346,3:345678,4:1,5:3,6:3333,7:234,8:456789,9:3,10:2,11:34567,12:456 ,13:,13:!! 145 !!,14:1,Fname:Muhammad,Lname:Riazz,标题:Developer,org:Magiclamp,电子邮件:[email protected]
I am new in programming please co-operate with me. I have data in the form of this saved in cookies.1:3456,2:12346,3:345678,4:1,5:3,6:3333,7:234,8:456789,9:3,10:2,11:34567,12:456,13:,13:!!145!!,14:1,Fname:Muhammad,Lname:Riazz,title:Developer,org:Magiclamp,email:[email protected]
我想将此数据保存在一个表中 1:3456,2:12346,3:345678,4:1,5:3,6:3333,7:234,8:456789,9:3 ,10:2,11:34567,12:456,13:,13:!! 145 !!,14:1,
I want to save this data in one table 1:3456,2:12346,3:345678,4:1,5:3,6:3333,7:234,8:456789,9:3,10:2,11:34567,12:456,13:,13:!!145!!,14:1,
,并要保存此其他表 Fname:Muhammad,Lname:Riazz,title:Developer,org:Magiclamp,email:[email protected]
有可能吗?
推荐答案
为什么需要在1个查询中插入?唯一的行INSERT查询并不会耗尽数据库,因此您可能只需插入两次即可.
Why do you need to insert this with 1 query? Sole row INSERT queries aren't that exhausting for the database, so you might aswell just insert twice.
基本上,MySQL不允许这样做.
Basicly MySQL doesn't allow this.
这篇关于可以通过一个插入查询php在mysql的两个不同表中插入数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!