慢慢来
发布时间:2016-01-05 10:27:54
Sybase 提供了对表进行hash join的命令 如下: select * from t1, t2 plan "(h_join (scan t1) (scan t2) )"ASE 15之后 sybase 默认开启 allrows_mix (之前是 allrows_oltp)区别如下:(copy from http://www.rocket99.com/techref/sybase8714.html)Optimization Goal .........【阅读全文】
发布时间:2014-03-17 15:20:43
asset_status_hist 表结构如下,在Sybase中无法用coalesce 一次将多行结果显示为一行 其中code结果可以以','连接可以尝试如下方法[52] HGCDB1.dmo_govcorp.1> desc asset_status_hist|Column name |Type |I|Null|Dflt|Rule|Table &nbs.........【阅读全文】
发布时间:2013-06-21 17:33:01
[53] HPGCDB1.data_govcorp.1> set statistics plancost on[53] HPGCDB1.data_govcorp.2> go[55] HPGCDB1.data_govcorp.1> select asset_id, cusip, 'G' from asset g[55] HPGCDB1.data_govcorp.2> where not exists ( select * from data_ejv_common..asset_xref x[55] HPGCDB1.data_govcorp.3> where x.asse.........【阅读全文】