视观表 (View) 可以被当作是虚拟表格。它跟表格的不同是,表格中有实际储存资料,而视观表是建立在表格之上的一个架构,它本身并不实际储存资料。
建立一个视观表的语法如下:
CREATE VIEW "VIEW_NAME" AS "SQL 语句";
例子:
我们查询到:
select a.SKU_ID,a.logday,a.sale_amt,b.bu_name,b.brand_name,b.user_name from a,b where a.SKU_id=b.SKU_id and user_n
python入门之语句,包括if语句、while语句、for语句,供python初学者参考。
//if语句例子
name = 'peirong';
if name == 'peirong':
print 'this is peirong';
elif name== 'maojun':
print 'this is maojun';
else:
print 'others';
//while语句
i = 0;
a = range(10);
while i < a.__len__():