摘要: UNION ALL--不合并重复行 Selects all records from all selectstatements. Duplicates are not removed UNION [DISTINCT] --合并重复行UNION 和 UNION DISTINCT功能相同 Selects all unique records from all selectstatements ... 阅读全文
posted @ 2013-04-09 17:07 沧海-重庆 阅读(3932) 评论(0) 推荐(0) 编辑
摘要: HANA 创建Triggers语法: CREATE TRIGGER <trigger_name> <trigger_action_time> <trigger_event> ON <subject_table_name> [REFERENCING <transition_list>] [<for_each_row>] BEGIN [<trigger_decl_list>] [<proc_hand... 阅读全文
posted @ 2013-04-09 16:39 沧海-重庆 阅读(2726) 评论(0) 推荐(0) 编辑
摘要: 方法一: insert into TEST_USER values ('TEST2'||'TEST','2012-11-02'); 方法二:利用函数concat函数 insert into TEST_USER values (concat('TEST2','TEST'),'2012-11-02'); 阅读全文
posted @ 2013-04-09 16:25 沧海-重庆 阅读(4585) 评论(0) 推荐(0) 编辑
摘要: 语法: CREATE TYPE {schema.}name AS TABLE (name1 type1 {, name2 type2,...}) 实列1: CREATE TYPE tt_publishers AS TABLE ( publisher INTEGER, name VARCHAR(50), price DECIMAL, cnt INTEGER ); ... 阅读全文
posted @ 2013-04-09 16:24 沧海-重庆 阅读(890) 评论(0) 推荐(0) 编辑