自学内容网 自学内容网

mysql 根据某张表插入新表语句

INSERT into `pdm`.config_category_process_route(`id`, `tenant_code`, `company_code`, `conf_order_category`, `conf_order_type`, `category_id`, `process_line_id`, `is_write_by_order`, `remark`, `is_enable`, `is_delete`, `create_id`, `create_name`, `create_date`, `modified_id`, `modified_name`, `modified_date`)
SELECT REPLACE(UUID(),'-',''),NULL,NULL,'53','5301-09',`code`,'1-09',1,NULL,1,0,'导入0710','导入0710',now(),
'导入0710','导入0710',now() from pd_category WHERE id !='1'

REPLACE(UUID(),'-','') 是生成uuId


原文地址:https://blog.csdn.net/h1403635700/article/details/140322921

免责声明:本站文章内容转载自网络资源,如本站内容侵犯了原著者的合法权益,可联系本站删除。更多内容请关注自学内容网(zxcms.com)!