MySQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsDatabasesMySQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old December 24th, 2004, 12:56 AM
abhit_kumar abhit_kumar is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 22 abhit_kumar User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 17 m 3 sec
Reputation Power: 0
prob in retrieving

i have two tables named sec_mast and sec_detail

SQL> descr sec_mast;
Name Null? Type
----------------------------------------- -------- ------------
SEC_NO NOT NULL NUMBER(4)
CATG_CODE NUMBER(2)
FACE_VAL NOT NULL NUMBER(10,2)
PUR_VAL NOT NULL NUMBER(10,2)
INT_PAID NOT NULL NUMBER(8,2)
INT_RECD NOT NULL NUMBER(8,2)
BRKR NOT NULL NUMBER(8,2)
TOT_VAL NOT NULL NUMBER(12,2)
VOU_NO VARCHAR2(9)
VOU_DATE DATE
VOU_AMT NUMBER(15,2)
DUE_DATE1 NOT NULL DATE
DUE_DATE2 DATE
LF_NO NOT NULL VARCHAR2(10)
MAT_DATE NOT NULL DATE
FK_VOU_NO2 VARCHAR2(9)

SQL> descr sec_detail;
Name Null? Type
----------------------------------------- -------- ----------------
SEC_NO NUMBER(4)
LF_NO VARCHAR2(8)
DUE_DATE1 DATE
VOU_NO VARCHAR2(9)
VOU_DATE DATE
VOU_AMT NUMBER(15,2)
FK_VOU_NO1 VARCHAR2(9)


my problem is that i want to retrieve values from database and i have used following query for the prepared statement.Here VOU_No is foreign key.

select * from sec_detail,sec_mast where sec_detail.sec_no=sec_mast.sec_no //

if this query is wrong then plzz help me in this..

Reply With Quote
  #2  
Old December 24th, 2004, 09:36 AM
MadCowDzz's Avatar
MadCowDzz MadCowDzz is offline
I'm Internet Famous
Dev Articles Frequenter (2500 - 2999 posts)
 
Join Date: Jan 2003
Location: Toronto, Canada
Posts: 2,890 MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 1 Week 16 h 4 m 48 sec
Reputation Power: 8
What happens when you run that query?

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesMySQL Development > prob in retrieving


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway