oracle中的||替换成mysql的concat

前端之家收集整理的这篇文章主要介绍了oracle中的||替换成mysql的concat前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

oracle:

sqlstr := 'select count(tname) from tab where tname = ''' || tablename || '''';

等价于:sqlstr :=( 'select count(tname) from tab where tname = '' ' )|| tablename || (' '' ');


sqlstr :='create index ZC_' || tablename || '_SYFX on ' || tablename || ' (SYFX)';

等价于:sqlstr :='create index ZC_' || tablename || '_SYFX on ' || tablename || ' (SYFX)' ;

猜你在找的Oracle相关文章