insert into reg_user (id,name,password,area_code,reg_time,first_pswd,record_type)
select l.reg_user_id,l.entry_person,'4QrcOUm6Wau+VuBX8g+IPg==',l.area_code,sysdate,'123456',l.type
from location_info l where l.type=5;
本文提供了一个SQL操作的具体实例,展示了如何使用INSERT INTO和SELECT语句来管理数据库中的用户信息。其中包括插入新记录和从表中选择特定数据的方法。
insert into reg_user (id,name,password,area_code,reg_time,first_pswd,record_type)
select l.reg_user_id,l.entry_person,'4QrcOUm6Wau+VuBX8g+IPg==',l.area_code,sysdate,'123456',l.type
from location_info l where l.type=5;
被折叠的 条评论
为什么被折叠?