Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
carat字段包含类似.58(0.58) 的值。我需要按 carat 顺序获取所有记录。我试着和演员一起玩,但没有运气,这可能吗?谢谢
carat
.58
如果carat是文本字段,那么这应该工作:
ORDER BY carat*(1.0);
ORDER BY CAST(carat AS DECIMAL(33,22));