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
.58
caratテキストフィールドの場合、これは機能するはずです:
ORDER BY carat*(1.0);
ORDER BY CAST(carat AS DECIMAL(33,22));