2015-08-18 154 views

回答

1

IMO,沒有在SQLite的SQL服務器STUFF()功能的任何直接的替代功能,我建議你使用這個:

當你有這樣的SQL Server:

STUFF(expression, start, numChars, newExpression) 

更改它下面的代碼在SQLite的:

Substr(expression, 1, start - 1) || newExpression || Substr(expression, start + numChars) 

[SQL Fiddle Demo example]