
# shiftrightunsigned
shiftrightunsigned函数用于无符号右移，将a的二进制数按位右移b位。
#### 命令格式
```
shiftrightunsigned(BIGINT a, BIGINT b)
```
#### 参数说明
表1参数说明 
| 参数 | 是否必选 | 参数类型                            | 说明                                                                                                                                         |
|:---|:---|:---|:---|
| a  | 是    | DOUBLE、BIGINT、DECIMAL、STRING类型。 | 参数a的格式包括浮点数格式、整数格式、字符串格式。 当参数a非BIGINT类型时，会隐式转换为BIGINT类型后参与运算。 |
| b  | 是    | DOUBLE、BIGINT、DECIMAL、STRING类型。 | 参数b的格式包括浮点数格式、整数格式、字符串格式。 当参数b非BIGINT类型时，会隐式转换为BIGINT类型后参与运算。  |
   
#### 返回值说明
返回INT类型。
![](https://support.huaweicloud.com/sqlref-spark-dli/public_sys-resources/note_3.0-zh-cn.png)
a或b值为NULL时，返回NULL。
#### 示例代码
返回2。
```
select shiftrightunsigned(16,3);
```
返回536870910。
```
select shiftrightunsigned(-16,3);
```
返回2。
```
select shiftrightunsigned(16.123456,3.123456);
```
返回NULL。
```
select shiftrightunsigned(null,3);
```
