小得瑟一下,记一下一个SQL语句

2019独角兽企业重金招聘Python工程师标准>>> hot3.png

INSERT INTO T_CAR_TYPE(CAR_TYPE_ID,CAR_TYPE_NAME,CAR_BRAND_ID,IS_VALID,STAMP) select SEQ_CAR_TYPE.nextval,c1.typename ,brand.car_brand_id,0,sysdate from t_car_brand brand, (select t1.name as typename,t2.name as brandname from t_car_classify t1,t_car_classify t2 where t1.parent_id = t2.id) c1 where brand.car_brand_name = c1.brandname;

转载于:https://my.oschina.net/u/232879/blog/122153

你可能感兴趣的:(小得瑟一下,记一下一个SQL语句)