Advertisement

03.03.2008 at 01:41PM PST, ID: 23210897
[x]
Attachment Details

MS SQL SELECT all columns except one (the key)

Asked by niner in SQL Query Syntax, MS SQL Server, Oracle Database

Tags: MS SQL

I have a table. It's a big table. It has lots and lots of columns (about 150).

I'm copying a row from this table to table B. Then I'm updating a column or two and copying it back into the original table as a new row. I'd like to use SELECT * FROM TABLEA but that would select all of the columns including the KEY column. Then, when I try to copy the row from TABLEB back to TABLEA after I update it, I will get a KEY violation.

How can I do a SELECT * (EXCEPT KEY) FROM TABLEA or something of the like?Start Free Trial
[+][-]03.03.2008 at 01:44PM PST, ID: 21036003

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: SQL Query Syntax, MS SQL Server, Oracle Database
Tags: MS SQL
Sign Up Now!
Solution Provided By: angelIII
Participating Experts: 6
Solution Grade: A
 
 
[+][-]03.03.2008 at 01:44PM PST, ID: 21036012

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.03.2008 at 01:45PM PST, ID: 21036019

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.03.2008 at 02:49PM PST, ID: 21036556

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]03.03.2008 at 05:18PM PST, ID: 21037473

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.04.2008 at 09:03AM PST, ID: 21042770

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.04.2008 at 09:50AM PST, ID: 21043181

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.04.2008 at 09:54AM PST, ID: 21043216

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.04.2008 at 11:10AM PST, ID: 21043995

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.04.2008 at 12:01PM PST, ID: 21044467

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.07.2008 at 04:31PM PDT, ID: 21301407

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]04.22.2008 at 05:04PM PDT, ID: 21416695

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628