Results 1 to 6 of 6

Thread: Column names

  1. #1
    Join Date
    Oct 2009
    Posts
    3

    Unanswered: Column names

    Hi

    Is there a way to create column names such as:

    ID
    MODE
    VERSION
    PCTFREE
    COMMENT
    DEPLOYER
    USER
    EXISTS

    Thanks
    Akis

  2. #2
    Join Date
    Aug 2003
    Location
    Where the Surf Meets the Turf @Del Mar, CA
    Posts
    7,776
    Provided Answers: 1
    YES, but it would be a BAD thing if you did; so I won't tell you how to shoot yourself in the foot.
    You can lead some folks to knowledge, but you can not make them think.
    The average person thinks he's above average!
    For most folks, they don't know, what they don't know.
    Good judgement comes from experience. Experience comes from bad judgement.

  3. #3
    Join Date
    Nov 2002
    Location
    Jersey
    Posts
    10,322
    Here's some rope

    Code:
    CREATE TABLE #t99 (	
      [ID]			int
    , [MODE]		varchar(10)
    , [VERSION]		int
    , [PCTFREE]		decimal(10,10)
    , [COMMENT]		varchar(max)
    , [DEPLOYER]	varchar(256)
    , [USER]		char(12)
    , [EXISTS]		bit
    )
    GO
    Now while this may work here...I do KNOW that bcp can choke on reserved words...I know [FUNCTION] does for sure
    Brett
    8-)

    It's a Great Day for America everybody!

    dbforums Yak CorralRadio 'Rita
    dbForums Member List
    I'm Good Once as I ever was

    The physical order of data in a database has no meaning.

  4. #4
    Join Date
    Jan 2004
    Location
    Croatia, Europe
    Posts
    4,094
    Provided Answers: 4
    Well, this probably works, but not on Oracle. Here you'd enclose column names into double quotes. Bad idea, anyway.

  5. #5
    Join Date
    Nov 2002
    Location
    Jersey
    Posts
    10,322
    oooppps wrong forum

    my bad

    Still a bad idea regardless of the platform

    Any reason why? Or is it just to pass a Cert?
    Brett
    8-)

    It's a Great Day for America everybody!

    dbforums Yak CorralRadio 'Rita
    dbForums Member List
    I'm Good Once as I ever was

    The physical order of data in a database has no meaning.

  6. #6
    Join Date
    Oct 2009
    Posts
    3
    Porting over from a DB2 database.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •