with xxx as
(select 'a,b,c,d' col1 from dual)
select regexp_substr(col1,'[^,]+',1,level) result
from xxx
connect by level = length(regexp_replace(col1,'[^,]+')) +1;
Turns a,b,c,d
into rows
a
b
c
d
Friday, 14 February 2020
Tuesday, 23 October 2018
SQL Server , quick row count
SELECT T.name AS [TABLE NAME],
I.rows AS [ROWCOUNT]
FROM sys.tables AS T
INNER JOIN sys.sysindexes AS I
ON T.object_id = I.id
AND I.indid < 2
where T.name like 'mdm_frontend_export_gb1_gb2'
ORDER BY I.rows DESC
I.rows AS [ROWCOUNT]
FROM sys.tables AS T
INNER JOIN sys.sysindexes AS I
ON T.object_id = I.id
AND I.indid < 2
where T.name like 'mdm_frontend_export_gb1_gb2'
ORDER BY I.rows DESC
Thursday, 7 August 2014
Bitmaps and reverse indexes
Found a good source of info on stuff I have not fully understood before
reverse indexes
bitmap myths
reverse indexes
bitmap myths
Wednesday, 25 June 2014
Wednesday, 11 June 2014
sql developer 4 - ubuntu crahses
The answer turned out to be
ulimit -c unlimited
followed by
unset GNOME_DESKTOP_SESSION_ID
then ./sqldeveloper.sh
https://forum.java.sun.com/thread/260563
ulimit -c unlimited
followed by
unset GNOME_DESKTOP_SESSION_ID
then ./sqldeveloper.sh
https://forum.java.sun.com/thread/260563
Subscribe to:
Posts (Atom)