|
|
 |
| Oracle General Oracle database discussions. |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the Oracle section of the Wrox p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.
|
 |

October 9th, 2004, 07:14 AM
|
|
Registered User
|
|
Join Date: Oct 2004
Location: Ahmedabad, Gujarat, India.
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
date storage
how to alter the date format of the table
Eg: how to store the date in the format JANUARY 10,1975
__________________
ans4u
|

October 10th, 2004, 04:16 PM
|
|
Registered User
|
|
Join Date: Sep 2003
Location: dammam, ad, Saudi Arabia.
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
in sqlplus
ALTER SESSION SET NLS_DATE_FORMAT = ''Month dd,YYYY''
in form
forms_ddl('ALTER SESSION SET NLS_DATE_FORMAT = ''DD/MM/YYYY''');
Waheed rashwan
|

October 11th, 2004, 01:04 AM
|
|
Registered User
|
|
Join Date: Oct 2004
Location: Ahmedabad, Gujarat, India.
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
thank you Waheed Rashwan for the post but ALTER SESSION SET NLS_DATE_FORMAT does not permanently affect the permanent date storage for a particular table to be viewed in the format whenever it is opened..it merely affects the temporary way to view the format in that format..does anybody know how to alter/insert the date in a particular format so that it is permanently stored in the table in that format,,be it other than the default date format set for the system.
Quote:
quote:Originally posted by wahras
in sqlplus
ALTER SESSION SET NLS_DATE_FORMAT = ''Month dd,YYYY''
in form
forms_ddl('ALTER SESSION SET NLS_DATE_FORMAT = ''DD/MM/YYYY''');
Waheed rashwan
|
|

October 12th, 2004, 01:52 AM
|
|
Authorized User
|
|
Join Date: Apr 2004
Location: Boise, ID, USA.
Posts: 70
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Oracle will always store DATE data in a packed binary format. This is handy for computers to use, but incomprehensible to applications. It is impossible to change the way Oracle stores a date.
It is the job of the client application, like SQL*Plus, to turn this binary data into a format that is comprehensible to the user. Oracle's tools will use NLS_DATE_FORMAT to determine how to display dates by default, though you can always use TO_CHAR to do an explicit format. NLS_DATE_FORMAT can be set at the session level, at the client level by setting an environment variable, or at the database level, by changing the initialization parameter. Individual sessions, however, can always override client and database level settings. Additionally, non-Oracle tools will generally not use NLS_DATE_FORMAT and will end up using their own date format.
Justin
Distributed Database Consulting, Inc.
http://www.ddbcinc.com/askDDBC
|

October 20th, 2004, 04:59 AM
|
|
Registered User
|
|
Join Date: Oct 2004
Location: Nasr City, Cairo, Egypt.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
when i try to user imp80 this messeage be declare imp-00000
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
 |