is it possible

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • radhikams
    New Member
    • Jan 2008
    • 49

    is it possible

    Will it be ppossible to create a sequence for a varchar field of a table?????

    thanks
  • debasisdas
    Recognized Expert Expert
    • Dec 2006
    • 8119

    #2
    Directly speaking NO. because for sequence all the values are numbers not even float.

    But you can create a sequence and concatinate with some character and use.

    Comment

    • subashsavji
      New Member
      • Jan 2008
      • 93

      #3
      No.
      Craete Serial Number And Incorporatre As New Column While Running.
      You Can Create By Using Cursor,loop And Counter. And Increment Counter Upto End Of Cursor.

      Comment

      • pravatjena
        New Member
        • Feb 2008
        • 3

        #4
        Code:
        create table test (id varchar2(20));
        
        Table Created.
        
        create sequence s1;
        
        insert into test values(s1.nextval);
        
        1 row inserted.

        But u cant use this sequence for arithmatic calculation.
        Last edited by amitpatel66; Feb 29 '08, 12:27 PM. Reason: code tags

        Comment

        Working...