34. 实例
34
C1+C2+C3组成主键,C4,C5,C6为普通字段
OK
Select * from t1 where c1=x and c2 =x and c3=‘xxxx’;
Select * from t1 where c1=x and c2=x;
Select * from t1 where c1=x;
Select * from t1 where c1=x and c2=x and c4=x;
Select * from t1 where c1=x and c6=x;
Select sum(c5) where c1=x;
C1 C2 C3 C4 C5 C6
35. 实例
35
C1+C2+C3组成主键,C4,C5,C6为普通字段
NOT OK
Select * from t1 where c2=x and c3 =‘xxxx’;
Select * from t1 where c3=‘xxxx’;
Select * from t1 where c2=x;
Select * from t1 where c5=x ;
更多OceanBase SQL手册参见:
http://oceanbase.alibaba-inc.com/wiki/index.php?title=SQL_User_manual
C1 C2 C3 C4 C5 C6