Re: update multiple columns
From: Jason (jasonlewis_at_hotrmail.com)
Date: 12/03/04
- Next message: Peter The Spate: "Trees?"
- Previous message: David Portas: "RE: Field Exists"
- In reply to: Robert Davis: "RE: update multiple columns"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 3 Dec 2004 11:51:18 +0100
"Robert Davis" <RobertDavis@discussions.microsoft.com> wrote in message
news:10822553-DFC5-4457-BD8B-A5838B634B04@microsoft.com...
> Build your update query dynamically by querying the
> information_schema.columns view (you can't see it in the database, but
it's
> there).
>
> Robert.
>
> "Jason" wrote:
>
> > Hi,
> >
> > Somebody knows a way to update multiple columns without typing each
column?
> >
> > I'm cleaning up a database where i have one table that shouldn't have
double
> > records. The thing is, that those records should be merged into 1
record.
> >
> > I would like to do something where the value is null in one of those
records
> > and replace that with the value of one the records. There are like 250
> > columns and there should be a way to do it like insert statement.
> >
> > Greetings,
> >
> > J
> >
> >
> >
Hi Robert,
Could you give me an example? I have some trouble with my sql skills.
- Next message: Peter The Spate: "Trees?"
- Previous message: David Portas: "RE: Field Exists"
- In reply to: Robert Davis: "RE: update multiple columns"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|