由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Database版 - Table Merge (SQL Server)
相关主题
SQL combine two columns from two different tables no shared (转载)In MySQL, 如何在procedure里create trigger?谢谢了?
初级问题很弱的Oracle问题
help about SQL for ACCESSSQL Server Trigger on System Base Table or Catalog View
Help on Sql server huge table performance一个single table 的 SQL QUERY
Help! A cluster method in SQLSQL combine two tables into one table and add a new column
请教SQL server的一个programming的问题,谢谢compare two large tables SQL (转载)
SQL问题请教: add one more columnSQL find distinct values in large table
SQL Server table variable 的一个问题请教。SQL multiply all values of a column in table (转载)
相关话题的讨论汇总
话题: table话题: merge话题: column话题: sql话题: server
进入Database版参与讨论
1 (共1页)
b****e
发帖数: 15
1
1)
How to Merge two tables into one new table. All the design are exactly same
2)
How to merge 4 columns "month","day","year","hour" in previous table into the
1 column "date" in the new column
thanks.
g***o
发帖数: 297
2

insert into Table_a
select * from Table_b;
the
use concatenation operater ||
select column_1 || column_2||column_3||column_4 as new_column_name
from table_name
This SQL statement is for ORACLE and ACCESS. It should be no big difference
for SQL server since it is a standard language.

【在 b****e 的大作中提到】
: 1)
: How to Merge two tables into one new table. All the design are exactly same
: 2)
: How to merge 4 columns "month","day","year","hour" in previous table into the
: 1 column "date" in the new column
: thanks.

1 (共1页)
进入Database版参与讨论
相关主题
SQL multiply all values of a column in table (转载)Help! A cluster method in SQL
SQL add some columns into a table from another table (转载请教SQL server的一个programming的问题,谢谢
SQL fast search in a 10 million records table (转载)SQL问题请教: add one more column
怎样把SQL一table 中系统自动生成的primary key 改成source table 中 的primary可以?SQL Server table variable 的一个问题请教。
SQL combine two columns from two different tables no shared (转载)In MySQL, 如何在procedure里create trigger?谢谢了?
初级问题很弱的Oracle问题
help about SQL for ACCESSSQL Server Trigger on System Base Table or Catalog View
Help on Sql server huge table performance一个single table 的 SQL QUERY
相关话题的讨论汇总
话题: table话题: merge话题: column话题: sql话题: server