在sql插入语句中一、"insert into news(tittle,content,date) values (?,?,?)";二、用select插入"insert into news(tittle,content,date) select tittle,content,date from news2 where id=1";如果我又要利用问号插入前两个变量,而第三个变量用select选择后插入,写在一个语句里如何写?还是只能分成两个语句~
解决方案 »
- 在服务器上无法启动mysql服务 错误193 求高手指点
- 数据过多,中文乱码
- 请教mysql汉字输出
- 在Cpanel空间中清空了MySQL数据库中的一个table,还可以将数据找回来吗?
- 程序执行mysql语句和实际操作mysql结果不一样?
- linux下怎么样用C语言访问mysql数据库?谢谢大家
- 高分求助:怎么解决warning Supplied argument is not a valid MySQL result resource
- ADO与MYSQL问题
- 怎样在RED HAT LINUX8。0下安装MYSQL 或POSTGRESQL;
- mysql关于临时表的联查问题
- 我的mysql默认插入数据怎么是加密的?
- windows环境下用pgadmin备份的数据库文件 linux用不了?(急,在线等)
select '?','?',date from news2 where id=1
set set content=?,date=( select date from news2 where id=1)
where news_id = ?