1、oracle中uuid生成方法:
select SYS_guid()from dual
2、instr()函数 ???
SELECT recordid, optselfqty, optcode, invoicecode, awardflag
FROM tb_inv_asstypeacc
WHERE orgdeptcode = v_orgdeptcode
AND instr(v_invoiceCodeStr,invoicecode)>0) ;表示invoicecode在字符串invoiceCodeStr内,即invoicecode IN v_invoiceCodeStr
3、trunc() 把时间格式2007-09-26 17:14:56转换成2007-09-26
eg: select t.insertdate,trunc(t.insertdate) from tb_reg_entagentsaleresult t