('%parent_id=%', value) + 8,(PATINDEX('%&%', substring(value,PATINDEX('%parent_id=%', value),50)) - 9query1064 - You have an error in your SQL syntax; check the manual that correspondsSELECT
*
有人能帮我解决把MsSQL转换成MySQL的问题吗?它会产生语法错误。varchar(250)) BEGIN IF srt1 IS NOT NULL and ISNUMERIC(srt1)=1 and PATINDEX('%,%',srt1)=0 and SET t=CONVERT(Money,srt1)SET t=NULLEND
我试过这样做作为<
FROM [" + tblname + "] ORDER BY CAST(LEFT([BUILDNO], CASE WHEN PATINDEX(N'%[^0-9]%', [BUILDNO]) < 1 THEN LEN([BUILDNO]) ELSE PATINDEX(N'%[^0-9]%', [BUILDNO]) - 1 END) AS INT),
RIGHT([BUILDNO], LEN([