[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [1/2HS] mysql : copier une ligne d'une table à une autre



Fri, 13 Dec 2019 23:30:30 +0100
"ajh-valmer" <ajh.valmer@free.fr> écrivait :

> On Friday 13 December 2019 23:16:30 fab wrote:
> > > Comment copier (insérer) une ligne complète (toutes colonnes)
> > > du mail <jean@rezo.net> de la table1 vers la table 2.
> 
> > si table1 a la même structure que table2:
> > insert into table2 select * from table1;
> > https://mariadb.com/kb/en/library/insert/
> 
> Je veux insérer une seule ligne complète, celle de <jean@rezo.net>
> 

insert into table2 select * from table1 where <ta clause where>;

Jean-Marc <jean-marc@6jf.be>
https://6jf.be/keys/ED863AD1.txt

Attachment: pgp0alvNOP7nK.pgp
Description: PGP signature


Reply to: