0
UPDATE table1, (select top 1 [ID],chef,formateur,techni from table1 order by Num desc)
AS x SET table2.ID = x.[ID], table2.Nom = x.[chef], table2.Nom = x.[formateur],
table2.Nom = x.[techni]
WHERE table2.mission="chef" and table2.mission="Formateur" and table2.mission="techni" ;
returns
table2 table 1
ID | mission |Nom| ID |chef|Formateur|techni|
-------------------------------- ----------------------------
1 | chef | | 1 |nom1| nom2 | nom3|
2 | Formateur | | **Result**
3 | techni | | ID | mission | Nom|
--------------------------
1 | chef | nom1|
2 | Formateur| nom2|
3 | techni | nom3|
- 我想在表分配表1名2 请我需要你的帮助:)
我有3个表,并且表1“Libelle Projet”的字段与表2和3的字段不具有相同的名称 –
这并不重要。表1并没有真正涉及到你的问题(你只是将Projets列设置为等于字符串'projetX')。如果这不是你想要做的,你需要澄清你的问题。 – Jerrad
例如在表1中,我们有id和libelle项目和日期,表2中我们有id,categorie,projects和date.and在表3中它类似于表2,但它只是空的。我想将值“Project X”分配给table3“Projectcs”或表2“projects”的列。 –