This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JDBC and the fly likes plz have a glance at this query Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "plz have a glance at this query" Watch "plz have a glance at this query" New topic
Author

plz have a glance at this query

sandhiya sindhi
Ranch Hand

Joined: Sep 25, 2003
Posts: 50
sir,
i have made these three tables
Create Table title
(t_id int Primary key, title varchar(30))

CREATE TABLE Question
(q_id int primary key ,
q_topic varchar(50),
message varchar(50),
userId varchar(30) foreign key references Biodata,
t_id int foreign key references title)
CREATE TABLE Question_Reply
(sno int ,
q_id int foreign key references Question,
reply varchar(50),
userId varchar(30) foreign key references Biodata,
date datetime)
Now sir here is my query which is i'm trying but no generating no result

kindly study it and give me reply as soon as possible plzzz
Wayne L Johnson
Ranch Hand

Joined: Sep 03, 2003
Posts: 399
Different databases treat type conversions differently, so your problem may be with the q.t_id='1' clause. "t_id" is defined as an int, so you don't need to have the value in quotes. Try q.t_id=1 instead.
The only other explanation would be that no rows satisfy the query. But try removing the quotes first.
sandhiya sindhi
Ranch Hand

Joined: Sep 25, 2003
Posts: 50
Noo sir it is not working. still no record
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: plz have a glance at this query
 
Similar Threads
problem while inserting values
Updaing image field in Sql server
Hypersonic DB question
SQL Error
Storing XML in the Database