AS %s with entry separated by commas

I'm trying to get a recordeset WHERE the nameArtist of the column 'contains' the 'artist' URL parameter For example, if 'Picasso' is in the parameter and then he must find all projects whose Picasso worked on. The problem is that often the nameArtist column contains an artist for example "Mondrian, Picasso, Chagall. He should always filter this project.

I tried with LIKE, but that does not give the projects when there are more artists.

I hope someone can give me a tip I did wrong here... Thankx.

$colname_rsAllprojects = "-1";
if (isset($_GET['artist'])) {
  $colname_rsAllprojects = $_GET['artist'];
}
mysql_select_db($database_connCasco, $connCasco);
$query_rsAllprojects = sprintf("SELECT * FROM `2008_content` WHERE nameArtist LIKE %s ORDER BY projectyear DESC", GetSQLValueString($colname_rsAllprojects, "text"));
$rsAllprojects = mysql_query($query_rsAllprojects, $connCasco) or die(mysql_error());
$row_rsAllprojects = mysql_fetch_assoc($rsAllprojects);
$totalRows_rsAllprojects = mysql_num_rows($rsAllprojects);

Brégent is correct. You must put % before and after the value you're looking for. However, put just like it in the SQL query won't work, because Dreamweaver use sprintf() to pass the value to a custom named GetSQLValueString() function to prevent the injection of SQL code. The % must be added to the value passed to GetSQLValueString().

Dreamweaver doesn't automatically when you add them % to the variable in the SQL of the advanced Recordset dialog box. However, I seem to remember that the way you did in the dialog box has changed in CS3 or CS4. No matter which version you use, it should work in all versions if you edit the PHP code like this:

$query_rsAllprojects = sprintf("SELECT * FROM `2008_content`WHERE nameArtist LIKE %s ORDER BY projectyear DESC", GetSQLValueString("%" . $colname_rsAllprojects . "%", "text"));

Tags: Dreamweaver

Similar Questions

  • How to print an entry separated by commas

    I would like to print an entry separated by commas to separate entries:

    Like when I put like <? PHP echo $row_rsContent ['artists'];? > I get: 'Picasso, Chagall, Matisse,' but I want like "Picasso < br > < br > Matisse to Chagall.

    And I also want to 'Picasso' a link to another Web site.

    Thanks for any help of furthre.

    Pass your variable to explode() to make a table. Then do what you want with each item.

    $artists = explode(',', $row_rsContent['artists']);
    echo '' . $artists[0] . 
    '; echo $artists[1]. '
    ' . $artists[2] . '
    ';
  • Print data with Format separated by commas.

    Hello

    I need to establish a rapport with the values in column format, separated by commas. I use > > express edition of oracle 11g

    Table used names and customer number, he participated in the interview, it is stored in the format below.
    emp_name client_name
    JAMES HAS
    JAMES B
    JAMES C
    ALEX HAS
    ALEX D
    SCOTT B
    SCOTT C
    my requirement for the report is shown below
    emp_name count (client_name) client_name
    JAMES 3 A, B, C
    ALEX 2A, D
    2 B, C SCOTT
    please advise me is there any function that converts and print format separated by commas.


    Thank you
    Sudhir

    Try this...

    / * code deleted after suggested by BluShadow * /.

    I'll post other methods of String-aggregation...
    Try this...

    select
        emp_name,
        count(client_name) cnt,
        rtrim(XMLAGG(xmlelement(e, client_name||',')).extract('//text()'),',')
    from xx
    group by emp_name
    order by cnt desc;
    

    For versions > 11g Release 2

    select
        emp_name,
        count(*) cnt,
        LISTAGG(client_name,',') WITHIN GROUP(ORDER BY NULL)
    from xx
    group by emp_name;
    

    Published by: Vanessa B on 7 December 2012 18:50
    -adding code

  • problem with column separated by commas

    I'm running into a problem with the following table structure

    CREATE TABLE «DETAILS»

    (

    'ID' NUMBER (22.0) NOT NULL,

    VARCHAR2 (150 CHAR) 'NAME' NOT NULL,

    "COVER" VARCHAR2 (150 CHAR) NOT NULL

    );

    Insert into EXPORT_TABLE (ID, NAME, COVER) values (252613546, 'VCONBU', ', 252612938,');

    Insert into EXPORT_TABLE (ID, NAME, COVER) values (252613549, 'SPMABU', ', 252612932,');

    INSERT INTO EXPORT_TABLE (ID, NAME, COVER) VALUES (252612938, 'HOSTEDTG', NULL);

    Insert into EXPORT_TABLE (ID, NAME, COVER) values (252612932, 'INSTG', null);

    Insert into EXPORT_TABLE (ID, NAME, COVER) values (367708813, 'ICF_1', ', 252613546,');

    Insert into EXPORT_TABLE (ID, NAME, COVER) values (364413059, 'CSWSPT', ', 252613549,');

    commit;

    Output

    IDNAMECOVER
    252613546VCONBUHOSTEDTG
    252613549SPMABUINSTG
    252612938HOSTEDTG
    252612932INSTG
    367708813ICF_1VCONBU
    364413059CSWSPTSPMABU

    Hello

    You may want a self-join, like this:

    SELECT c.id

    c.name

    p.name AS cover

    Of export_table c

    LEFT JOIN export_table p WE «,» | p.ID

    || ',' = c.lid

    ;

  • read the entry separated by commas?

    I work with PHPMySQL in the database, I have a separate entrance which is casco_cat_id = 1,5,6.

    Now I want to get all the entries that have a '5' (for example) casco_cat_id. I tried that line but it has no result:

    SELECT * FROM '2008_content' WHERE casco_cat_id LIKE ' 5'

    Is LOVE not right?

    Thanks for any help, tutorials, where to look?

    SELECT * FROM `2008_content` WHERE FIND_IN_SET('5' casco_cat_id)
    
  • Extract values separated by commas in xquery string

    Hello

    We get a string with values separated by comma Ex: a, b, c.

    Our requirement is to mark the string and transform values to an XML using xquery.

    I'm new to xquery. Can someone help me on this please.

    Thank you
    Chauvin

    Hi Jacky,.

    You can use the function "mark".
    For example:

    let $str := "a,b,c"
    return 
    {
     for $i in tokenize($str,",")
     return     { $i }
    }
    
    

    will return:

    
       a
       b
       c
    
    
  • Problem using the list separated by commas with nested table element

    Hello

    I have a list separated by commas like this:
    H23004,H24005,T7231,T8231,T9231
    And want to create a function that creates a where clause clause for each element with an output like this:
    UPPER('H23004') IN (UPPER(charge))
    OR UPPER('H23005') IN (UPPER(charge))
    OR UPPER('T7231') IN (UPPER(charge))
    OR UPPER('T8231') IN (UPPER(charge))
    OR UPPER('T9231') IN (UPPER(charge))
    Here's my test function that is not working properly:
    create or replace function FNC_LIST_TO_WHERE_CLAUSE(v_list in VARCHAR2) return varchar2 is
     -- declaration of list type
     TYPE batch_type IS TABLE OF pr_stamm.charge%TYPE;
     -- variable for Batches
     v_batch batch_type := batch_type('''' || replace(v_list,',',''',''') || '''');
     return_script varchar2(1000);
    
     BEGIN
     -- loop as long as there are objects left
     FOR i IN v_batch.FIRST .. v_batch.LAST
     LOOP
       --DBMS_OUTPUT.PUT_LINE(offices(i));
       -- create where clause
       IF i = 1 THEN
         return_script := 'UPPER(' || v_batch(i) || ') IN (UPPER(charge))';
       ELSE
         return_script := return_script || ' OR UPPER(' || v_batch(i) || ') IN (UPPER(charge))';
       END IF;
     END LOOP;
    
     return (return_script);
     end;
    The out put looks like this:
    UPPER('H23004','H24005','T7231','T8231','T9231') IN (UPPER(charge))
    I don't know what I did wrong? It calculates the amount of the incorrect array element! (v_batch. Must be 5)
    v_batch. FIRST = 1
    v_batch. LAST = 1

    Kind regards

    Tobias

    Try this...

    declare
    text varchar2 (1000): = "H23004, H24005, T7231, T8231, T9231;
    v_where varchar2 (1000);
    Start
    Text: = text | «, » ;
    While instr (text, ',') <> 0
    loop
    v_where: = v_where | ' UPPER ("': substr (Text, 1, InStr(Text,',',1)-1) |") ' IN (UPPER (load)) OR ';
    text: = substr (text, instr(text,',',1) + 1);
    end loop;
    v_where: = substr (v_where, 1, length (v_where)-3);
    dbms_output.put_line (v_where);
    end;

    convert it to function...

  • Problem with display Inlines for comma separated output (horizontally)

    Hi all

    It's my XML data,

    -< EMP_IDS >
    -< > 10001 EMP_ID < / EMP_ID >
    -< > 10002 EMP_ID < / EMP_ID >
    -< > 10003 EMP_ID < / EMP_ID >
    -< > 10004 EMP_ID < / EMP_ID >
    -< > 10005 EMP_ID < / EMP_ID >
    -< / EMP_IDS >

    I show all emp_ids in a single horizontal line, separated by commas, using this code

    10001,10002,10003,10004,10005.


    <? xdoxslt:set_variable($_XDOCTX,'C',count(.//EMP_ID))? > <? for-each@inlines:EMP_ID? > <? ? >
    <? If@inlines:position ()! = xdoxslt:get_variable($_XDOCTX,'C')? >, <? end if? >
    <? If@inlines:position () = xdoxslt:get_variable($_XDOCTX,'C')? >. <? end if? >
    <? end foreach? >

    Question: What I want is that when my EMP_ID = ' 10002 "should NOT be displayed, so I want the output to be

    10001,10003,10004,10005.

    I am unable to code this, is there any way by which I can take the value 10002 in a variable and use an if statement to not show this value?

    Help, please.

    Thank you
    Ronny

    can u try this

  • With the help of a string of separated by commas as lines

    HT a column in which I store the name separated by commas, I have to show them that the lines in a report...
    Help, please

    Check out this link...

    http://nimishgarg.blogspot.com/2009/12/Oracle-SQL-use-comma-seprated-string-to.html

  • Build the string separated by commas in query with Expression box sub

    Oracle 10g on Windows XP

    Consider the following query:

    Select batch_id, tr state_tag_seq where request_type in (select case WHEN PX = 'RETURN' AND 'TRANSFER' |) «, » || "PUBLIC TRANSIT"
    WHEN PX = "RFT" THEN "TRANSIT".
    ELSE 'Invalid '.
    END
    OF THE DOUBLE
    ) ;


    In this case, PX is accepted to execution of the user interface.

    I'm having no rows returned (all valid lines matching in DB) for the following case assessment

    WHEN PX = 'RETURN' THEN 'TRANSFER '. «, » ||' Transit "(PX when is evaluated to 'RETURN')

    The application works well when it px IS estimated to be "PCR" (as the evaluated expression is just a string ('TRANSIT') single, not separated by commas, as in the other case)

    Hiow do rewrite this query, if it gives a correct result? In other words, I actually build the query string slot, which is assessed by the external when query clause.

    I think it might be a specific way to use quotes in my case expression, but I'm reaching an impasse. Any help is appreciated.

    Thank you
    SR

    You can try

    select batch_id, state_tag_seq
      from tr
     where request_type member of case
                             when px = 'RETURN'
                             then
                              sys.dbms_debug_vc2coll (
                               'TRANSFER',
                               'TRANSIT'
                              )
                             when px = 'RFT'
                             then
                              sys.dbms_debug_vc2coll ('TRANSIT')
                             else
                              sys.dbms_debug_vc2coll ('Invalid')
                             end
    
  • How to store the values separated by commas

    Hi all

    I have a table named discount, with discount_id (number data type) as one of the columns.
    The user gives an entry as the value separated by commas, (ex: '123,27890,3543')
    I use built-in proc that separates the values separated by commas.
    DECLARE
       l_input   VARCHAR2 (4000) := '123,27890,3543';
       l_count   BINARY_INTEGER;
       l_array   DBMS_UTILITY.lname_array;
    BEGIN
       DBMS_UTILITY.comma_to_table (
          list     => REGEXP_REPLACE (l_input, '(^|,)', '\1x'),
          tablen   => l_count,
          tab      => l_array);
       DBMS_OUTPUT.put_line (l_count);   
    
       FOR i IN 1 .. l_count
       LOOP
          DBMS_OUTPUT.put_line (
                'Element '
             || TO_CHAR (i)
             || ' of array contains: '
             || SUBSTR (l_array (i), 2));
       END LOOP;
    END;
    
    Result:
    3
    Element 1 of array contains: 123
    Element 2 of array contains: 27890
    Element 3 of array contains: 3543
    Result set is stored in a table.
    I would like to do a select on the table of discounts
    Select * discount where discount_id (123, 27890 3543).

    I am looking for options,
    I need to create a new physical table as
    Create table new_table (identification number) and bulk insert in this table.
    Select * discount where discount_id in (select distinct id of new_table).
    or
    Is there a better way?

    THX
    Rod.

    Hello, SamFisher.
    May be the recursive subquery factoring help you?

    WITH test(f1, n) AS (select '12, 15, 235', 1 from dual
                         UNION all
                         select f1, n + 1 from test where n < regexp_count('12, 15, 235', ',') + 1)
    SELECT regexp_substr(f1, '[^, ]+', 1, n) f
    FROM test
    
  • Written for several digital lines separated by commas

    Hello people,

    I use a USB-6009 box and want to write several digital lines created in the style, separated by commas:

    error = DAQmxCreateDOChan(taskSelHead,"dev3/port0/line0,dev3/port0/line6","",DAQmx_Val_ChanPerLine);

    When I try to write in this channel I do

    uInt8 data [8] = {d1, 0, 0, 0, 0, 0, d2, 0}; with d1 and d2 that represents 0 or 1, which bits I want to get written

    int error = DAQmxWriteDigitalLines (taskSelectFilter, 1, 1, 10, DAQmx_Val_GroupByChannel, data, NULL, NULL);

    The result is, this only $line0 is updated, lin6 rest 0.

    I also tried DAQmxWriteDigitalU8 with the same effect.

    Can anyone help?

    Thanks in advance,

    Michael

    Hi Michael,

    you have defined two dig.out channels in your task: line 0 and line 6. So, when you write an array of string values, d1 Gets the mapping to your line 0 straight - but line 6 still receives a zero!

    Have you tried to set data uInt8 [2] = {d1, d2}?

    Best regards
    Sebastian

  • Value separated by commas in a table column to get each field separtely?

    Hello

    I have the table that a column has values separated by commas in it. This table is populated using SQL LOADER, which is staging table.

    I need to retrieve the records of these values separated by commas.

    format of. CSV file is as -

    A separate file of pipes.

    DHCP-1-1-1. WNLB-CMTS-01-1,WNLB-CMTS-02-2|

    DHCP-1-1-2. WNLB-CMTS-03-3,WNLB-CMTS-04-4,WNLB-CMTS-05-5|

    DHCP-1-1-3. WNLB-CMTS-01-1.

    DHCP-1-1-4. WNLB-CMTS-05-8,WNLB-CMTS-05-6,WNLB-CMTS-05-0,WNLB-CMTS-03-3|

    DHCP-1-1-5 | WNLB-CMTS-02-2,WNLB-CMTS-04-4,WNLB-CMTS-05-7|

    CREATE TABLE link_data (dhcp_token VARCHAR2 (30), cmts_to_add VARCHAR2 (200), cmts_to_remove VARCHAR2 (200));

    insert into link_data values ('dhcp-1-1-1','wnlb-cmts-01-1,wnlb-cmts-02-2',null);

    insert into link_data values ('dhcp-1-1-2','wnlb-cmts-03-3,wnlb-cmts-04-4,wnlb-cmts-05-5',null);

    insert into link_data values ('dhcp-1-1-3','wnlb-cmts-01-1',null);

    insert into link_data values ('dhcp-1-1-4','wnlb-cmts-05-8,wnlb-cmts-05-6,wnlb-cmts-05-0,wnlb-cmts-03-3',null);

    insert into link_data values ('dhcp-1-1-5','wnlb-cmts-02-2,wnlb-cmts-04-4,wnlb-cmts-05-7',null);

    Here the cmts_to_add column has comma separted

    I need values such as -.

    > for wnlb-cmts-01-1,wnlb-cmts-02-2 > > wnlb-CMTS-01-1

    > > wnlb-CMTS-02-2

    > for wnlb-cmts-03-3,wnlb-cmts-04-4,wnlb-cmts-05-5 > > wnlb-CMTS-03-3

    > > wnlb-CMTS-04-4

    > > wnlb-CMTS-05-5

    And so on...

    I do this because it's the staging table and I load data into the main tables using this table.

    This second field contain different values as the simple comma-delimited string.

    I need to write a PLSQL block to insert into the main table after checking as if dhcp-1-1-1 and wnlb-CMTS-01-1 is present in the main table so not to introduce other insert a new record.

    To meet this requirement, I need to get the distinct value of the cmts_to_add column to insert into DB.

    the value will be inserted as dhcp-1-1-1_TO_wnlb-cmts-01-1 and dhcp-1-1-1_TO_wnlb-cmts-02-2 for the first row of the array of link_data.

    The process will also be same for the rest of the lines.

    I use the function substrt and instr for this problem, but its does not work.

    declare

    cursor c_link is select * from link_data.

    l_rec_link link_data % rowtype;

    l_dhcp varchar2 (30);

    l_cmts varchar2 (20000);

    l_cmts_1 varchar2 (32000);

    Start

    Open c_link;

    loop

    extract the c_link in l_rec_link;

    l_cmts: = l_rec_link.cmts_to_add;

    loop

    l_cmts_1: = substr (l_cmts, 1, instr(l_cmts,',')-1);

    dbms_output.put_line (l_cmts_1);

    end loop;

    dbms_output.put_line(l_dhcp||) e '|| l_cmts);

    When the output c_link % notfound;

    end loop;

    exception

    while others then

    Dbms_output.put_line ('ERROR' |) SQLERRM);

    end;

    Its a peusdo code I write, but it also gives me the wrong answer it gives me error ORA-20000: ORU-10027: buffer overflow, limit of 20000 bytes

    I am using-

    Oracle Database 11 g Enterprise Edition Release 11.2.0.1.0 - 64 bit Production

    Please tell me if my problem isn't clear!

    Hello

    little 'trick': Add a comma at the end of the chain... So it's easier to deal with the fact that there are zero, one, or N components...

    CREATE TABLE link_data (dhcp_token VARCHAR2 (30), cmts_to_add VARCHAR2 (200), cmts_to_remove VARCHAR2 (200));
    insert into link_data values ('dhcp-1-1-1','wnlb-cmts-01-1,wnlb-cmts-02-2',null);
    insert into link_data values ('dhcp-1-1-2','wnlb-cmts-03-3,wnlb-cmts-04-4,wnlb-cmts-05-5',null);
    insert into link_data values ('dhcp-1-1-3','wnlb-cmts-01-1',null);
    insert into link_data values ('dhcp-1-1-4','wnlb-cmts-05-8,wnlb-cmts-05-6,wnlb-cmts-05-0,wnlb-cmts-03-3',null);
    insert into link_data values ('dhcp-1-1-5','wnlb-cmts-02-2,wnlb-cmts-04-4,wnlb-cmts-05-7',null);
    COMMIT;

    SET SERVEROUT ON
    DECLARE
    l_cmts VARCHAR2 (200 CHAR);
    l_cmts_1 VARCHAR2 (200 CHAR);
    BEGIN
    FOR r IN (SELECT dhcp_token, cmts_to_add |) ',' cmts
    OF link_data
    )
    LOOP
    l_cmts: = r.cmts;
    l_cmts_1: = SUBSTR (l_cmts, 1, INSTR (l_cmts, ",") - 1);
    While l_cmts_1 IS NOT NULL
    LOOP
    DBMS_OUTPUT. Put_line (r.dhcp_token |) '|' || l_cmts_1);
    l_cmts: = SUBSTR (l_cmts, INSTR (l_cmts, ",") + 1);
    l_cmts_1: = SUBSTR (l_cmts, 1, INSTR (l_cmts, ",") - 1);
    END LOOP;
    END LOOP;
    END;
    /
    DHCP-1-1-1. WNLB-CMTS-01-1
    DHCP-1-1-1. WNLB-CMTS-02-2
    DHCP-1-1-2. WNLB-CMTS-03-3
    DHCP-1-1-2. WNLB-CMTS-04-4
    DHCP-1-1-2. WNLB-CMTS-05-5
    DHCP-1-1-3. WNLB-CMTS-01-1
    DHCP-1-1-4. WNLB-CMTS-05-8
    DHCP-1-1-4. WNLB-CMTS-05-6
    DHCP-1-1-4. WNLB-CMTS-05-0
    DHCP-1-1-4. WNLB-CMTS-03-3
    DHCP-1-1-5 | WNLB-CMTS-02-2
    DHCP-1-1-5 | WNLB-CMTS-04-4
    DHCP-1-1-5 | WNLB-CMTS-05-7

    Best regards

    Bruno Vroman.

  • Separated by commas as columns

    The text below table can values separated by commas and want to divide it into parts and display them as different columns.

    For example

    Output.jpg

    I'm able to do with the CASE statement, but I was wondering if it can be done in a different way.

    CREATE TABLE T)

    ID NUMBER 4,

    TEXT VARCHAR2 (100)

    );

    INSERT INTO T VALUES (1, 'ALL, biased');

    INSERT INTO T VALUES (2, 'ALL, Zero');

    INSERT INTO T VALUES (3, 'STAT, NOSTAT');

    INSERT INTO T values (4, 'ONEVALUE');

    SELECT id, text,

    CASE WHEN INSTR (text, ',') > 0 THEN

    SUBSTR (text, 1, (INSTR(text,',')-1))

    ON THE OTHER

    TEXT

    END part_1

    CASE WHEN INSTR (text, ',') > 0 THEN

    SUBSTR (text, INSTR (text, ",") + 1, LENGTH (text))

    ON THE OTHER

    NULL VALUE

    END Part_2

    T;

    Hello

    MyOAF wrote:

    The text below table can values separated by commas, and you want to divide it into parts & post them as different columns.

    For example

    I'm able to do with the CASE statement, but I was wondering if it can be done in a different way.

    CREATE TABLE T)

    ID NUMBER 4,

    TEXT VARCHAR2 (100)

    );

    INSERT INTO T VALUES (1, 'ALL, biased');

    INSERT INTO T VALUES (2, 'ALL, Zero');

    INSERT INTO T VALUES (3, 'STAT, NOSTAT');

    INSERT INTO T values (4, 'ONEVALUE');

    SELECT id, text,

    CASE WHEN INSTR (text, ',') > 0 THEN

    SUBSTR (text, 1, (INSTR(text,',')-1))

    ON THE OTHER

    TEXT

    END part_1

    CASE WHEN INSTR (text, ',') > 0 THEN

    SUBSTR (text, INSTR (text, ",") + 1, LENGTH (text))

    ON THE OTHER

    NULL VALUE

    END Part_2

    T;

    Here's one way:

    WITH got_comma_pos AS

    (

    SELECT id, text

    , INSTR (text |) ','

    , ','

    ) AS comma_pos

    T

    )

    SELECT id, text

    , SUBSTR (text, 1, comma_pos - 1) AS part_1

    SUBSTR (text, comma_pos + 1) AS part_2

    OF got_comma_pos

    ORDER BY id

    ;

    You can also use regular expressions, but it will be slower.

  • Splitting data separated by commas

    Hi friends,

    I have a few million records that must be formatted as data and need your help with this.

    Actual data in the csv file:

    «30375516451 ',' June 3, 2013 23:31:33 ","June 4, 13"," Tag #: 2490544Sharjah - White 33708 ", 'Al Garhoud bridge nine', 'Abu Dhabi', '4.00»»'

    Value using request, separated by commas:

    Select

    Replace (replace (replace (replace (test_value,'"', null"), chr (13), null), chr (160), null), chr (10), null) "test_value"

    of the test

    where to_number (length (test_value) - length (replace(test_value,',',''))) in (3.6);

    Output:

    30375516451, 03-Jun-2013 23:31:33, 4 June 13, Tag #: 2490565Sharjah - white 33708, new Al Garhoud bridge Abu Dhabi, 4.00

    Need to change a part with highest result of the query to make it entirely comma separated:

    Tag #: 2490565Sharjah - White 33708,.

    Output:

    2490565, Sharjah, 33708 white,-remove the space before the comma: white 33708,.

    Power required:

    30375516451, 03-Jun-2013 23:31:33, June 4, 13, 2490544, Sharjah, white 33708, Al Garhoud new bridge, Abu Dhabi, 4.00

    Sample data:

    CREATE TABLE TEST (TEST_VALUE VARCHAR2 (4000));

    INSERT INTO TEST VALUES (' "30375516451","June 3, 2013 23:31:33", "June 4, 13","Tag #: 2490565Sharjah - White 33708", "Al Garhoud bridge nine", "Abu Dhabi", "4.00" ' ");

    Thank you

    with the trial as)
    Select "" 30375516451 ',' June 3, 2013 23:31:33 ","June 4, 13"," Tag #: 2490544Sharjah - 33708 white ', 'Al Garhoud New Bridge', 'Abu Dhabi', '4.00' ' test_value»
    of the double
    )
    Select regexp_replace)
    regexp_replace)
    test_value,
    '( *")| [' || Chr (13) | Chr (160) | Chr (10) | ']',
    NULL,
    1,
    0,
    « n »
    ),
    'Tag #:(\d+)(.+) - ([^,]+)',
    '\1,\2,\3 '.
    ) test_value
    of the test
    /

    TEST_VALUE
    --------------------------------------------------------------------------------------------------------------
    30375516451, 03-Jun-2013 23:31:33, 04-Jun-13, 2490544, Sharjah, White 33708, new Al Garhoud bridge Abu Dhabi, 4.00

    SQL >

    SY.

Maybe you are looking for