Click here to Skip to main content
15,897,891 members
Home / Discussions / Database
   

Database

 
GeneralRe: Odd problem (conversion or openquery?) only appearing in a stored procedure but not when running it adhoc Pin
alex3_1418-Sep-09 0:05
alex3_1418-Sep-09 0:05 
GeneralRe: Odd problem (conversion or openquery?) only appearing in a stored procedure but not when running it adhoc Pin
ElectricLlama18-Sep-09 15:00
ElectricLlama18-Sep-09 15:00 
Questionhow to connect triggerwithout main server Pin
rupal217-Sep-09 21:38
rupal217-Sep-09 21:38 
AnswerRepost Pin
Richard MacCutchan17-Sep-09 23:17
mveRichard MacCutchan17-Sep-09 23:17 
AnswerRe: how to connect triggerwithout main server Pin
Eddy Vluggen17-Sep-09 23:50
professionalEddy Vluggen17-Sep-09 23:50 
Questionhow to connect trigger Pin
rupal217-Sep-09 21:29
rupal217-Sep-09 21:29 
QuestionOracle Query Pin
sandhya1417-Sep-09 19:51
sandhya1417-Sep-09 19:51 
AnswerRe: Oracle Query Pin
sumithz22-Sep-09 1:33
sumithz22-Sep-09 1:33 
step 1 : create a Table types named "DIVISION_ARRAY"
CREATE TYPE "DIVISION_ARRAY" AS TABLE OF VARCHAR2(12)
step 2 : execute the below procedures

CREATE OR REPLACE  FUNCTION "UNPACKDIVISIONARRAY" <br />
    (Source                     IN       VARCHAR2 DEFAULT NULL,<br />
 Delimiter                  IN       CHAR DEFAULT ',')<br />
RETURN division_array PIPELINED IS<br />
l_list varchar2(32767) := Source;<br />
l_idx pls_integer;<br />
l_value    varchar2(32767);<br />
BEGIN<br />
loop<br />
        l_idx := instr(l_list,Delimiter);<br />
        if l_idx > 0 then<br />
            pipe row(substr(l_list,1,l_idx-1));<br />
            l_list := substr(l_list,l_idx+length(Delimiter));<br />
<br />
        else<br />
            pipe row(l_list);<br />
            exit;<br />
        end if;<br />
    end loop;<br />
    return;<br />
end UNPACKDIVISIONARRAY;

step 3 : execute the below sql to see the result

Select column_value from TABLE(UNPACKDIVISIONARRAY('111,113'))

hope that this will help you.


regards,
Sumith Koshy Thankan,
OASYS Information Technology.
Dubai
QuestionMySql not responding to query [modified] Pin
Jeffrey Webster17-Sep-09 15:06
Jeffrey Webster17-Sep-09 15:06 
AnswerRe: MySql not responding to query [modified] Pin
Luc Pattyn17-Sep-09 15:56
sitebuilderLuc Pattyn17-Sep-09 15:56 
NewsGet trained, get free copy of SQL Server 2008 Standard Pin
brucedkyle17-Sep-09 9:00
brucedkyle17-Sep-09 9:00 
GeneralRe: Get trained, get free copy of SQL Server 2008 Standard Pin
εїзεїзεїз17-Sep-09 13:13
εїзεїзεїз17-Sep-09 13:13 
QuestionMultiple queries being requested on for same table Pin
Vishnu Nath17-Sep-09 4:53
Vishnu Nath17-Sep-09 4:53 
AnswerRe: Multiple queries being requested on for same table Pin
David Mujica17-Sep-09 5:14
David Mujica17-Sep-09 5:14 
AnswerRe: Multiple queries being requested on for same table Pin
Ashfield17-Sep-09 9:15
Ashfield17-Sep-09 9:15 
GeneralRe: Multiple queries being requested on for same table Pin
Vishnu Nath18-Sep-09 21:05
Vishnu Nath18-Sep-09 21:05 
GeneralRe: Multiple queries being requested on for same table Pin
Ashfield18-Sep-09 21:30
Ashfield18-Sep-09 21:30 
QuestionDatabase Deployment Pin
mobius11100117-Sep-09 4:30
mobius11100117-Sep-09 4:30 
AnswerRe: Database Deployment Pin
J4amieC17-Sep-09 4:51
J4amieC17-Sep-09 4:51 
AnswerScript it Pin
David Mujica17-Sep-09 5:07
David Mujica17-Sep-09 5:07 
GeneralRe: Database Deployment Pin
mobius11100117-Sep-09 5:46
mobius11100117-Sep-09 5:46 
QuestionTypes of Deadlocks in SQL Server Pin
John.L.Ponratnam17-Sep-09 4:21
John.L.Ponratnam17-Sep-09 4:21 
AnswerRe: Types of Deadlocks in SQL Server Pin
David Mujica17-Sep-09 5:02
David Mujica17-Sep-09 5:02 
AnswerRe: Types of Deadlocks in SQL Server Pin
Ashfield17-Sep-09 9:17
Ashfield17-Sep-09 9:17 
AnswerRe: Types of Deadlocks in SQL Server Pin
εїзεїзεїз17-Sep-09 13:28
εїзεїзεїз17-Sep-09 13:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.