myid myfield mytext
101 3 text1
120 3 text2
210 3 text4
428 3 text19
101 5
118 5
210 5
120 5请问,在php 5 + mysql 4中,如何实现把myfield为3 的mytext内容复制到myfield为5的mytext中,要求myid必须对应。例如,把 text4 复制到 where myid=210 and myfield=5 的 mytext字段。myfield为3和5的myid不一定完全一致的,例如,那个myid 428
101 3 text1
120 3 text2
210 3 text4
428 3 text19
101 5
118 5
210 5
120 5请问,在php 5 + mysql 4中,如何实现把myfield为3 的mytext内容复制到myfield为5的mytext中,要求myid必须对应。例如,把 text4 复制到 where myid=210 and myfield=5 的 mytext字段。myfield为3和5的myid不一定完全一致的,例如,那个myid 428
解决方案 »
- 测了一下asp连接access和mysql插入速度
- 这里的高手帮心看看。为什么会有这么多mysql进程
- LINUX ,mysql5.0默认的配置文件是哪个?
- MYSQL安装问题
- 我想要在MYSQL表中的几组数据中查询某个包含关键字的数据
- 关于存储过程select into 赋值的问题
- select * from `table` where `id` in (3,2,1,5) 列出的记录能不能按3,2,15排序?谢谢
- 新生成的float字段的格式显示问题
- 请问:一个sql语句最长可以为多长?
- 关于WinMysqlAdmin的创建表问题
- mysql如何求不连续列中每一列的最大值?
- mysql 函数怎么返回一个表
update mytable a,mytable b
set a.mytext=b.mytext
whree a.myid=b.myid and a.myfield=5 and b.myfield=3;