Date Added: 14/11/2016

Sql Table classification or categorization over a table

 

1- insert into Atable select from Btable

insert Example;

insert into Atable (title,...)
SELECT xtitle,... FROM Btable where 1 group by xtitle

 

2- update a table using inner join  

update Example ;

update Btable as a
inner join Atable as b
on b.title=a.xtitle
set a.x_id=b.id

 

Last Update: 12/02/2018 Posted by: müslüm ÇEN

Not Commented Yet !
Please login in order to comment . Login