Current location: Hot Scripts Forums » Programming Languages » PHP » sql statement


sql statement

Reply
  #1 (permalink)  
Old 07-11-05, 12:28 AM
adubb adubb is offline
Newbie Coder
 
Join Date: Jan 2005
Posts: 40
Thanks: 0
Thanked 0 Times in 0 Posts
sql statement

any sql guru's know whats wrong with this??


select part.partno, partdesc, unitprice, orders.orderno, orderdate
from s1.part, s1.orders, s1.orderprod
where part.partno = orderprod.partno(+)
and orders.orderno(+) = orderprod.orderno
and upper(partdesc) like 'A%'
or upper(partdesc) like 'C%'
or upper(partdesc) like 'S%';
Reply With Quote
  #2 (permalink)  
Old 07-11-05, 03:10 AM
dennispopel dennispopel is offline
Coding Addict
 
Join Date: Mar 2005
Posts: 263
Thanks: 0
Thanked 0 Times in 0 Posts
Hello,

What are these (+) in the statement?
__________________
onPHP5.com - PHP5: Articles, News, Tutorials, Interviews, Software and more
Reply With Quote
  #3 (permalink)  
Old 07-12-05, 05:20 AM
bannme bannme is offline
Newbie Coder
 
Join Date: Jun 2005
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by adubb
any sql guru's know whats wrong with this??


select part.partno, partdesc, unitprice, orders.orderno, orderdate
from s1.part, s1.orders, s1.orderprod
where part.partno = orderprod.partno(+)
and orders.orderno(+) = orderprod.orderno
and upper(partdesc) like 'A%'
or upper(partdesc) like 'C%'
or upper(partdesc) like 'S%';
Which database do you use? How they config?
Why do you want to put s1.xxx? In here do you mean s1 is database? If so it doesn't need. And again what is (+)?
Reply With Quote
Reply

Bookmarks


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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Function that has Sql statement gop373 ASP 3 02-28-05 09:56 AM
sql query statement unsure mivec PHP 3 04-12-04 08:52 AM
SQL Statement Ajtessin ASP 2 03-26-04 04:02 AM
Help with ASP & FORMS blessedrub ASP 0 01-23-04 10:22 AM
change my field in this example sal21 ASP 3 07-14-03 02:49 AM


All times are GMT -5. The time now is 06:54 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.