GPS平台、網站建設、軟件開發、系統運維,找森大網絡科技!
https://cnsendnet.taobao.com
來自森大科技官方博客
http://www.cnsendblog.com/index.php/?p=1188
SELECT * FROM OBD_DATA;
CREATE TABLE AAA_Huch
(
StudentID varchar2(50) primary key,
StudentName varchar2(50) default '' not null
);
SELECT * FROM AAA_HUCH;
--由於StudentName是not null,插入的時候不能賦null,否則會報錯
INSERT INTO AAA_Huch(StudentID)
VALUES('AA');
--也不能這樣
INSERT INTO AAA_Huch(StudentID,StudentName)
VALUES('AA',NULL);
--這樣也會報錯,oracle中''會當成null處理
INSERT INTO AAA_Huch(StudentID,StudentName)
VALUES('bb','');
--只能這樣,插入一個空格符
INSERT INTO AAA_Huch(StudentID,StudentName)
VALUES('bb',' ');
alter table aaa_huch
add sex int default 0;
INSERT INTO AAA_Huch(StudentID,StudentName)
VALUES('cc','cc');
select * from alarm_info;
GPS平台、網站建設、軟件開發、系統運維,找森大網絡科技!
https://cnsendnet.taobao.com
來自森大科技官方博客
http://www.cnsendblog.com/index.php/?p=1188