--STR(nExpression [, nLength [, nDecimalPlaces]])回傳與指定運算式對應的字串
--nLength,回傳的字串長度;nDecimalPlaces,回傳字串的小數位數
select
SPACE(u.Depth*6) + u.Content as 評論,
u.Thread + LTRIM(STR(u.Depth,100,0)) as 排序
from UserComments as u
order by u.Thread + LTRIM(STR(u.Depth,100,0))
這個 STR()函式 在mysql中好像沒有, 應該用哪個函式代替呢
轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/147646.html
標籤:MySQL
上一篇:fiddler匯出json問題
