Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > MySQL
|
MySQL General discussion about the MySQL database.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the MySQL section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 14th, 2004, 04:36 AM
Authorized User
 
Join Date: Oct 2003
Posts: 89
Thanks: 0
Thanked 0 Times in 0 Posts
Default select statement

Hi,

Can someone please help?

I have 2 tables in sql server.
Table ADS fields:
ad_poster 'username
ad_id
ad_title
ad_link
ad_description

Table USER
u_id 'username
u_password
u_phone
u_email

In vb.net I need to write all the fields into textboxes but I am not sure how to write the select statement.
This is what i tried but no textboxes are filled:
 Dim Ssql As String = "SELECT * FROM ADS, USERS WHERE AD_ID = @ad_id AND ADS.AD_POSTER = USERS.U_ID"

 CMD.Parameters.Add("@ad_id", ad_id)
the ad_id is received from a querystring.







Similar Threads
Thread Thread Starter Forum Replies Last Post
select statement ??? RinoDM SQL Server 2000 7 June 19th, 2008 08:40 AM
select Statement gregalb SQL Server 2000 3 January 15th, 2008 12:00 AM
select statement help... RinoDM SQL Server 2000 13 January 10th, 2008 08:34 PM
Select from another select statement to a repeater simsen ASP.NET 2.0 Professional 0 May 2nd, 2007 04:34 PM
Select Statement jmss66 Oracle 1 May 27th, 2004 02:31 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.