开发者

what's wrong with this code? [closed]

开发者 https://www.devze.com 2022-12-28 23:32 出处:网络
This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time,or an extraordinarily narrow situation that is not generally applic
This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. Closed 11 years ago.

this is my code which will not work correctly ! what is wrong with its data type :( thanks

CREATE TABLE T1 (A INTEGER NOT NULL);
CREATE TABLE T3 (A SMALLINT NOT NULL);
INSERT T1 VALUES (32768.5);
SELECT * FROM T1;
INSERT T3 SELECT * FROM T1;
SELECT * FROM T3;
开发者_StackOverflow社区


32768.5 is not an integer, and it's too big to fit in a smallint.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号