1 2 3 4 5 6 7 8 9 10 11 12 13
| delete from table_product
DBCC CHECKIDENT ('table_product', RESEED, 0)
INSERT INTO Table_Product
(MARQUE, FOURNISSEUR, DESCRIPTION, REF_CONSTRUCTEUR, TARIF_PUBLIC_VARCHAR, TARIF_PRIVATE_VARCHAR)
SELECT Marque, Revendeur, DescriptionTotale, RefConstructeur, PrixPublicHT, PrixAchatHT
FROM tableEntiere
update table_product set TARIF_PRIVATE_VARCHAR = 0 where TARIF_PRIVATE_VARCHAR is null
update table_product set TARIF_PUBLIC_VARCHAR = 0 where TARIF_PUBLIC_VARCHAR is null
update table_product set TARIF_PRIVATE=cast(replace(TARIF_PRIVATE_VARCHAR,',','.') as float)
update table_product set TARIF_PUBLIC=cast(replace(TARIF_PUBLIC_VARCHAR,',','.') as float) |
Partager