Home » RDBMS Server » Server Administration » create table
create table [message #60593] Wed, 18 February 2004 08:53 Go to next message
sidd
Messages: 130
Registered: May 2003
Senior Member
What are the disadvantages of naming fields with ‘#’ signs like

 

SQL> create table tst_tabl (emp_id number(10), ename# varchar2(20), eaddr varchar2(10));



 

Table created.



 

SQL> desc tst_tabl



 Name                                      Null?    Type



 ----------------------------------------- -------- ----------------------------



 EMP_ID                                             NUMBER(10)



 ENAME#                                             VARCHAR2(20)



 EADDR                                              VARCHAR2(10)

 

Are there any disadvantages please let me know ?

Thanks

Regards



 
Re: create table [message #60596 is a reply to message #60593] Wed, 18 February 2004 09:51 Go to previous messageGo to next message
andrew again
Messages: 2577
Registered: March 2000
Senior Member
Oracle do it all the time in the data dictionary. I don't know of any problems. I would stick to whatever your standard is though.
Re: create table [message #60597 is a reply to message #60593] Wed, 18 February 2004 10:22 Go to previous messageGo to next message
Thiru
Messages: 1089
Registered: May 2002
Senior Member
Saw this on the documentation
"Nonquoted identifiers can contain only alphanumeric characters from your database character set and the underscore (_), dollar sign ($), and pound sign (#). Database links can also contain periods (.) and "at" signs (@). Oracle Corporation strongly discourages you from using $ and #. "

I know Oracle uses $ and # all the time for its dictionary tables.

its upto you :)

-Thiru
Re: create table [message #60600 is a reply to message #60597] Wed, 18 February 2004 13:18 Go to previous messageGo to next message
sidd
Messages: 130
Registered: May 2003
Senior Member
So what you would do if you had to create one with '#' sign.
Re: create table [message #60601 is a reply to message #60600] Wed, 18 February 2004 13:46 Go to previous messageGo to next message
Thiru
Messages: 1089
Registered: May 2002
Senior Member
I wouldnt !
Re: create table [message #60606 is a reply to message #60601] Wed, 18 February 2004 18:34 Go to previous messageGo to next message
sidd
Messages: 130
Registered: May 2003
Senior Member
Thanks !!!, you said its documented in oracle documents, if you can send me the link or what pdf to search I would appreciate it.
thanks
regards
Re: create table [message #60610 is a reply to message #60606] Thu, 19 February 2004 04:14 Go to previous message
Thiru
Messages: 1089
Registered: May 2002
Senior Member
here
Previous Topic: nls session parameters
Next Topic: about oracle application server 10g
Goto Forum:
  


Current Time: Fri Sep 20 12:31:05 CDT 2024