| -- Licensed to the Apache Software Foundation (ASF) under one |
| -- or more contributor license agreements. See the NOTICE file |
| -- distributed with this work for additional information |
| -- regarding copyright ownership. The ASF licenses this file |
| -- to you under the Apache License, Version 2.0 (the |
| -- "License"); you may not use this file except in compliance |
| -- with the License. You may obtain a copy of the License at |
| -- |
| -- http://www.apache.org/licenses/LICENSE-2.0 |
| -- |
| -- Unless required by applicable law or agreed to in writing, |
| -- software distributed under the License is distributed on an |
| -- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| -- KIND, either express or implied. See the License for the |
| -- specific language governing permissions and limitations |
| -- under the License. |
| |
| create table doris_test.all_types ( |
| `tinyint_u` tinyint unsigned, |
| `smallint_u` smallint unsigned, |
| `mediumint_u` mediumint unsigned, |
| `int_u` int unsigned, |
| `bigint_u` bigint unsigned, |
| `decimal_u` decimal(18, 5) unsigned, |
| `double_u` double unsigned, |
| `float_u` float unsigned, |
| `boolean` boolean, |
| `tinyint` tinyint, |
| `smallint` smallint, |
| `year` year, |
| `mediumint` mediumint, |
| `int` int, |
| `bigint` bigint, |
| `date` date, |
| `timestamp` timestamp(4) null, |
| `datetime` datetime, |
| `float` float, |
| `double` double, |
| `decimal` decimal(12, 4), |
| `char` char(5), |
| `varchar` varchar(10), |
| `time` time(4), |
| `text` text, |
| `blob` blob, |
| `json` json, |
| `set` set('Option1', 'Option2', 'Option3'), |
| `bit` bit(6), |
| `binary` binary(12), |
| `varbinary` varbinary(12), |
| `enum` enum('Value1', 'Value2', 'Value3') |
| ) engine=innodb charset=utf8; |