Ask a Question related to ASP Database, Design and Development.
-
Aaron Bertrand [MVP] #1
Re: Adding to a value in a single command
sql = "UPDATE table SET column = (column + " & aspVariable & ") WHERE
....?..."
conn.execute(sql)
--
Aaron Bertrand, SQL Server MVP
[url]http://www.aspfaq.com/[/url]
Please reply in the newsgroups, but if you absolutely
must reply via e-mail, please take out the TRASH.
"Jacob" <yak2016@comcast.net> wrote in message
news:#bhLsnRQDHA.2476@TK2MSFTNGP10.phx.gbl...from> I'm using SQL Server 7 and this is what I want. I need to read a fieldjust> a table, and a number from some just-posted form data from the user, then
> write the new number right back to the same field. Of course, I couldnew> do a select, add to the value in a variable, then do an update with the> value, but I was just wondering if there was a quicker way to go about it.
>
> Thanks,
> Jacob
>
>
Aaron Bertrand [MVP] Guest
-
update command does not fire when adding row
I have built a grid dynamically, and with edit, delete and bound columns. I can edit the records in the grid with no problem; when you click on... -
How to handle, when SQL command returns a single value
Hi, I have a problem in dealing with the return value of the SQL command. I know how to do, when SQL command returns Recordsets. But in my case it... -
Adding single quote to javascript/php block
I have a block of code that calls a function to copy some text to the clipboard. The text includes some text and an email from a recordset. I am... -
What is the command for adding an attachment to web email
Hi, My ISP only supports the SMTPsvg.Mailer and I have the following code which works great except for adding attachments. An exhaustive googe... -
adding single quotes around string
what is the correct syntax for adding additional single quotes around a string in sql? the problem is with AAA Corp, which is a variable. ...



Reply With Quote

