【问题标题】:how to create unsigned type columns in TDengine如何在 TDengine 中创建无符号类型的列
【发布时间】:2021-11-08 01:11:35
【问题描述】:

我使用的是 tdengine,如果 tdengine 支持无符号类型,我不会。我试图创建这样的无符号类型。

taos> 建表测试(ts timestamp,unsigned int uint);

DB 错误:“unsigned int uint);”附近的语法错误(0.001150s) 淘> 创建表测试(ts 时间戳,uint unsigned int );

DB 错误:“unsigned int );”附近的语法错误(0.000809s)

有谁知道 tdengine 是否支持 unsigned 类型?如果是,请举个例子。谢谢!

【问题讨论】:

    标签: tdengine


    【解决方案1】:

    是的,TDengine 支持无符号数据类型。您可以创建无符号数据类型如下 sql:

    create table unsigntest(ts timestamp,ut tinyint unsigned,us smallint unsigned,ui int unsigned,ub bigint unsigned,bi bigint);
    

    【讨论】:

    • 这很有用,谢谢
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2020-09-26
    • 1970-01-01
    • 1970-01-01
    • 2019-04-22
    • 1970-01-01
    • 2015-03-07
    • 1970-01-01
    相关资源
    最近更新 更多