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 << 2) = 240

sqlite> select  (60 >> 2);
(60 >> 2) = 15
sqlite_operators.htm
广告