Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Oct 3rd, 2005, 9:55 PM   #1
java_roshan
Professional Programmer
 
Join Date: Mar 2005
Location: Student of University of Mumbai, Maharashtra State, India
Posts: 344
Rep Power: 4 java_roshan is on a distinguished road
Anyone know SQLPLUS (Oracle 9i)?

First, I am surprised, that there are no sections of database related sections..

How?

It it the thing that drives everything...right?

My query....

I type a check constraint for a table as

check(dob < sysdate)...

I encountered an error stating that the system variable is wrongly used.
I have checked this and found that I might need to write this...

check (dob < ROUND(sysdate) )
Is this correct?
__________________
Visit: http://www.somaiya.edu
java_roshan is offline   Reply With Quote
Old Oct 4th, 2005, 12:32 AM   #2
bl00dninja
Programming Guru
 
bl00dninja's Avatar
 
Join Date: Oct 2004
Location: namespace std
Posts: 1,246
Rep Power: 5 bl00dninja is on a distinguished road
i believe this was addressed in some other post. the site leaders' point of view was that most questions in this area tend to be of the type "how do i use 'whatever language' to interact with a database?" making most of these queries fall neatly into one of the existing forums. however, i personally believe that it wouldn't hurt to have an SQL forum.
__________________
i put on my robe and wizard hat...

Have you ever heard of Plato, Aristotle, Socrates?...Morons.
bl00dninja is offline   Reply With Quote
Old Oct 4th, 2005, 7:57 AM   #3
Dizzutch
Professional Programmer
 
Dizzutch's Avatar
 
Join Date: Dec 2004
Location: Worcester, MA
Posts: 441
Rep Power: 4 Dizzutch is on a distinguished road
Send a message via ICQ to Dizzutch Send a message via AIM to Dizzutch Send a message via MSN to Dizzutch Send a message via Yahoo to Dizzutch
I do a lot of work with Oracle, 9i and 10g, I'll look into your problem tonight, and get back to you if nobody else does first.
__________________
naked pictures of you | PFO F@H stats
Dizzutch is offline   Reply With Quote
Old Oct 4th, 2005, 8:16 AM   #4
Infinite Recursion
Programming Guru
 
Infinite Recursion's Avatar
 
Join Date: Jul 2004
Location: United States
Posts: 3,467
Rep Power: 8 Infinite Recursion is on a distinguished road
Send a message via MSN to Infinite Recursion Send a message via Yahoo to Infinite Recursion
Same here, primarily 9i and 10g development... in a pl/sql environment... but I'll look into this as well, as I have access to older databases at home.
__________________
http://jasonpowers.net

"There are a thousand hacking at the branches of evil to one who is striking at the root."
Infinite Recursion is offline   Reply With Quote
Old Oct 4th, 2005, 8:37 AM   #5
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Quote:
It it the thing that drives everything...right?
Wrong. Much, yes, but your view is narrow.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Oct 4th, 2005, 10:58 AM   #6
java_roshan
Professional Programmer
 
Join Date: Mar 2005
Location: Student of University of Mumbai, Maharashtra State, India
Posts: 344
Rep Power: 4 java_roshan is on a distinguished road
Quote:
Originally Posted by DaWei
Wrong. Much, yes, but your view is narrow.
I think I should have been precise....

It is something that has to be behind something...

I hope I am not narrower now?
:-?
__________________
Visit: http://www.somaiya.edu
java_roshan is offline   Reply With Quote
Old Oct 4th, 2005, 11:14 AM   #7
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
There are tons of applications that don't deal with databases, either directly or indirectly. Of course, they deal with data (what position is switch #2 in?), but that's hardly a requirement for Oracle or any other "database."

There would be, I'm sure, forums for databases generally, or specifically, if the traffic warranted them. For instance, if had a problem with a particular query to MySql, I'd no doubt encounter it in my PHP's code, and ask in the PHP forum, even if it were strictly a MySql mistake. If there were tons of such things, a database (or even a MySql) forum would no doubt spring into existence to satisfy the need.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Oct 4th, 2005, 12:24 PM   #8
java_roshan
Professional Programmer
 
Join Date: Mar 2005
Location: Student of University of Mumbai, Maharashtra State, India
Posts: 344
Rep Power: 4 java_roshan is on a distinguished road
DaWei Sir,

Kindly give me examples of those applications that do not deal with databases directly or indirectly...
the reason I am asking this, is because, I really dont know ...

Also, what is the answer to my query (#1 sysdate..??)
__________________
Visit: http://www.somaiya.edu
java_roshan is offline   Reply With Quote
Old Oct 4th, 2005, 1:32 PM   #9
Infinite Recursion
Programming Guru
 
Infinite Recursion's Avatar
 
Join Date: Jul 2004
Location: United States
Posts: 3,467
Rep Power: 8 Infinite Recursion is on a distinguished road
Send a message via MSN to Infinite Recursion Send a message via Yahoo to Infinite Recursion
An example that doesn't necessarily require a database is: Client/Server programming. You don't need to have a database to remotely monitor another machine, etc.
__________________
http://jasonpowers.net

"There are a thousand hacking at the branches of evil to one who is striking at the root."
Infinite Recursion is offline   Reply With Quote
Old Oct 4th, 2005, 1:36 PM   #10
Infinite Recursion
Programming Guru
 
Infinite Recursion's Avatar
 
Join Date: Jul 2004
Location: United States
Posts: 3,467
Rep Power: 8 Infinite Recursion is on a distinguished road
Send a message via MSN to Infinite Recursion Send a message via Yahoo to Infinite Recursion
how about trying this ...

CHECK ((To_Date(dob)) < SYSDATE ) ?
__________________
http://jasonpowers.net

"There are a thousand hacking at the branches of evil to one who is striking at the root."
Infinite Recursion is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 6:46 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC