updating a single value to multiple non consecutive rows


Posted on 16th Feb 2014 07:03 pm by admin

I need to update the same value to multiple non consecutive rows. I need to add an experation date to about 6000 parcels.
I know I can update 1 with

SQL> update parcel
Did you know?Explore Trending and Topic pages for more stories like this.
2 set expdate = sysdate
3 where prclid = 'A';

I imagin I need some thing like the following

SQL> update parcel
2 set expdate = sysdate
3 where prclid = 'A','C', 'D', 'G','E', 'J' ....
No comments posted yet

Your Answer:

Login to answer
185 Like 7 Dislike
Previous forums Next forums
Other forums

Floating Point Precision Loss
I'm writing a program to draw a three-dimensional cube (with a corner cut off) without using any 3D

trouble printing an array....
I'm having some trouble printing out an array forwards. I'm figuring out the high and low of an arra

Variable Clash
In the past I've had variables clash. For example:

Code: <?php
$c = 5;
$ca

do while...woes
I'm sure this is childsplay but it is stumping me, everytime i try what I think would make this work

update 2 columns by doing inner 2-column query
Hi,
is something like this possible?

update contract_all set col1,col2 =
(

Solution to the FindControl problem
I have seen may posts about having problems with the FindControl method. Most seem to come about bec

How to disable direct access to a file
Suppose I've 2 Files. 1.php & 2.php

I don't want anybody to access 2.php directly fr

problem with sql querry in php script
Hello guys,

What I want to do is I want to read out a csv file and then but te conent ot the

help with multi-update
Now sure how to ask this really....
10g database if that matters.

I have a customer

Renaming array keys
The issue: renaming array keys inside a foreach loop.

I'm trying to build a pie chart image w

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash