Login
Logging in...
Remember me
Log in
Forgot password or user name?
Log in with
Search in titles only
Search in Java only
Search
Advanced Search
Home
Articles
News
Resouces
Buyer's Guide
Events
Videos
Forums
Archive
Publications
Bookstore
Today's Posts
Mark Channels Read
Member List
Forum
Programming
Java
Unconfigured Ad Widget
Collapse
Announcement
Collapse
No announcement yet.
Using a variable in an SQL select statement.
Collapse
X
Collapse
Posts
Latest Activity
Photos
Search
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
Guest.Visitor
Share
Tweet
#1
Using a variable in an SQL select statement.
06-15-2007, 05:28 AM
You can use a PreparedStatement. See code sample below. Regards, Mark
Code
Jill Ruyechan
Junior Member
Join Date:
Mar 2024
Posts:
10
Share
Tweet
#2
06-18-2007, 07:44 AM
Using a variable in an SQL select statement.
How do I use a variable in an SQL select statement? ResultSet rs = stmt.executeQuery("Select * FROM INT010F where FIELDNAME = holdnamevarialbe");
Comment
Post
Cancel
Jill Ruyechan
Junior Member
Join Date:
Mar 2024
Posts:
10
Share
Tweet
#3
06-18-2007, 07:44 AM
Using a variable in an SQL select statement.
Thank you very much Mark. The code works great.
Comment
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
X
Comment