Sqlite-bitwise-operators

提供:Dev Guides
2020年6月23日 (火) 02:27時点におけるMaintenance script (トーク | 投稿記録)による版 (Imported from text file)
(差分) ← 古い版 | 最新版 (差分) | 新しい版 → (差分)
移動先:案内検索

SQLite-ビット演算子

以下は、SQLiteビット演算子の使用法を示す簡単な例です-

sqlite> .mode line
sqlite> select 60 | 13;
60 | 13 = 61

sqlite> select 60 & 13;
60 & 13 = 12

sqlite> select 60 ^ 13;
10 * 20 = 200

sqlite> select  (~60);
(~60) = -61

sqlite>  select  (60 << 2);
(60 <&lt 2) = 240

sqlite> select  (60 >> 2);
(60 >> 2) = 15