1. 程式人生 > >oracle的sql查詢

oracle的sql查詢

1.非空查詢。oracle中沒有!=,is null 和 is not null 是必須的。

select BIANZH,CBNY,DJ,ISBN,SM from T_KCSM where SM is not null and ISBN is not null ;

2.普通查詢。

select * from T_KCSM where NAME=‘張三’ ;

3.查詢資料總條數

select * from T_KCSM ;