网络营销电子商务研究中心  
How to buy the best prescription safety glasses in Canada? Let's study!
Go Back   网络营销电子商务研究中心 > 服务器与数据库 > MySQL
User Name
Password
 
FAQ Members List Calendar Cheap Glasses

Reply
 
Thread Tools Display Modes
  #1   IP: 199.115.98.59
Old 2016-07-18, 11:33 AM
Racine Racine is offline
初级会员
 
Join Date: 2012-08-09
Posts: 1
Racine 现在声名狼藉
Default Mysql 复制一条数据

从不同的表复制
insert into 表1 select * from 表2 where id =1

同一张表中复制(无主键)
insert into 表1 select * from 表2 where id =1

同一张表中复制(有主键)
insert into 表1(字段1,字段2,字段3) select 字段1,字段2,字段3 from 表1 where id=1
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 2 (0 members and 2 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
MySQL毫秒值和日期的指定格式的相互转换 Kaitlin MySQL 0 2015-04-18 11:01 PM
mysql 帮助文档使用 Haddam MySQL 0 2014-11-26 06:43 PM
如何导入导出MySQL数据库 topvip 建站交流 0 2006-10-10 07:43 AM
mysql安装与简单使用 sunshine 服务器环境搭建 0 2006-01-11 07:29 PM
winxp下安装全新的apache,php(5.0),mysql(5.0)... topvip 服务器环境搭建 0 2006-01-08 10:28 PM

Prescription-glasses.com offers prescription glasses online at discount prices.
All times are GMT +8. The time now is 09:11 AM.


Powered by vBulletin Version 3.8.7
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.