A
A
Andrey Golubkov2015-01-22 21:40:21
SQL
Andrey Golubkov, 2015-01-22 21:40:21

How to move fields from one table to another?

I have 2 tables.
First with
ID_fnd and idteh fields
152 A
333 B
111 C
Second:
ID_fnd and Name
152 I1
333 I2
111 I3
How do I move the idteh field to another table so that I can search it SELECT * FROM table2 WHERE idteh='A'

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Elena, 2015-01-22
@Nidora

insert into dbo.table_2 (Name_2)
select
 Name_1
from dbo.table_1

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question