sql通用查询 ,以-- 开头的才认为是注释,其余的情况不是
Showing
1 changed file
with
2 additions
and
1 deletions
@@ -250,7 +250,8 @@ | @@ -250,7 +250,8 @@ | ||
250 | if(rowContent){ | 250 | if(rowContent){ |
251 | var annoteTypeNum=rowContent.indexOf("--"); | 251 | var annoteTypeNum=rowContent.indexOf("--"); |
252 | if(annoteTypeNum>0){ | 252 | if(annoteTypeNum>0){ |
253 | - newArry.push(rowContent.substr(0,annoteTypeNum)); | 253 | + // newArry.push(rowContent.substr(0,annoteTypeNum)); |
254 | + newArry.push(rowContent); | ||
254 | }else if(annoteTypeNum==0){ | 255 | }else if(annoteTypeNum==0){ |
255 | //去掉 | 256 | //去掉 |
256 | }else{ | 257 | }else{ |
-
Please register or login to post a comment