Wrox Programmer Forums
|
Pro VB Databases Advanced-level VB coding questions specific to using VB with databases. Beginning-level questions or issues not specific to database use will be redirected to other forums.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro VB Databases 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 April 29th, 2005, 07:33 AM
Authorized User
 
Join Date: Dec 2004
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default SQL table

hi i hope someone can help me with this i need to be able to post a value to only one field in an allready populated sql table.

so when the pk is 4 set value as 400.00 i have an ado connection and select statement but it tries to put in a line instead of just one field that i need.

thank you


 
Old April 29th, 2005, 09:54 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,212
Thanks: 0
Thanked 1 Time in 1 Post
Default

you need sql UPDATE statement, like this:
UPDATE your_table
SET field_name = 400.00
WHERE pk_field = 4





Similar Threads
Thread Thread Starter Forum Replies Last Post
Rename a table through SQL in SQL Server pankaj_daga SQL Server 2000 5 June 27th, 2008 03:31 AM
Update one table to another table using DTS in SQL Printmaker SQL Language 0 July 24th, 2007 07:17 AM
how to insert into SQL table p2ptolu Classic ASP Databases 1 June 17th, 2005 06:52 AM
SQL Triggers (1 table) cole SQL Language 4 June 14th, 2005 04:36 PM
Help with 2 table SQL Query mgibson30 SQL Language 2 June 23rd, 2003 10:32 PM





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