sybase-ase15

weird phenomena during deadlocks involving IMAGE or TEXT columns

你说的曾经没有我的故事 提交于 2019-12-14 04:05:44
问题 This is something very disturbing I stumbled upon while stress-testing an application using Sybase ASE 15.7. We have the following table: CREATE TABLE foo ( i INT NOT NULL, blob IMAGE ); ALTER TABLE foo ADD PRIMARY KEY (i); The table has, even before starting the test, a single row with some data in the IMAGE column. No rows are either deleted or inserted during the test. So the table always contains a single row. Column blob is only updated (in transaction T1 below) to some value (not NULL).

PCI IN slow with cluster index

与世无争的帅哥 提交于 2019-12-11 15:48:33
问题 We are working with ASE SYBASE 15.7 We have a huge historical table: 700 millions of records and one CLUSTER INDEX: c1,c2,c3,c4 with ALLOW_DUP_ROWS Every month we load 700,000 records en the table via BCP IN These records had a lot of duplicate records because fields: c2 and c3 had the same value for all records The time of BCP IN was 6 hours We changed the logical of INSERT's in the monthly table and now all of fields of CLUSTER INDEX: c1,c2,c3,c4 are diferents. After this change, the BCP IN

How to access temporary table(# table sybase ase 15) from java using mybatis

寵の児 提交于 2019-12-11 15:47:19
问题 I have requirement such as follow are the steps step 1 : From java process I will create a temp table(# table ). step 2 : Insert some data to that temp table(# table ) after parsing a csv file. Step 3 : Will call a Procedure which will access that temp table(# table ) and do some processing and insert the data from temp table to a parmanent table, and return error if present Step 4 : Drop the temp table ORM Tool : mybatis Database server : SYBASE ASE 15.0 Programming Language : Java,Tsql

Sybase ASE 15 Aggregate Function for strings

蹲街弑〆低调 提交于 2019-12-02 05:41:56
问题 I'am findind a way to aggregate strings from differents rows into a single row in sybase ASE 15. Like this: id | Name Result: id | Names -- - ---- -- - ----- 1 | Matt 1 | Matt, Rocks 1 | Rocks 2 | Stylus 2 | Stylus Something like FOR XML PATH in T-SQL. Thanks! 回答1: Sybase ASE does not have any string aggregate functions like list() or group_concat() ; and while there is some support for FOR XML , it does not include support for the PATH option/feature. Assuming you could have an unknown