嵌套删除的方式


 
delete from cfg_sys_user_role csur

where csur.USER_ID
 
in (
 
select csur.USER_ID

from cfg_sys_user csu, cfg_sys_user_role csur
 
where csu.OID = csur.USER_ID

and csu.USER_NAME = 'lanchuangsa'
 
)
 
<!--[if !supportLists]-->3.1.10    <!--[endif]--> ||

update dat_yyhb_account d set d.AREA_CODE = '0'||d.area_code

或update dat_yyhb_account d set d.AREA_CODE = concat('0',d.AREA_CODE)
 
 
 
select '0'||d.area_code from dat_yyhb_account d
 
 
 
update dat_yyhb_account d set d.area_code = ltrim(d.AREA_CODE, '0')
 

你可能感兴趣的:(嵌套)