当前位置: 代码迷 >> Sql Server >> 问一个数据库视图的写法?解决方案
  详细解决方案

问一个数据库视图的写法?解决方案

热度:1   发布时间:2016-04-27 20:40:12.0
问一个数据库视图的写法??
现有表T:
-------------
  f1   |   f2   |   f3
-------------
    a   |   b     |   c

=============

能不能设计这样一个试图?
---
V
---
a
b
c
===

?


------解决方案--------------------
create view v_a as
select f1 V from t union all select f2 from t union all select f3 from t
  相关解决方案