如何在使用SQL查询前2天将列添加到表中? [英] How to get the columns added to a table 2 days before using SQL query?

查看:97
本文介绍了如何在使用SQL查询前2天将列添加到表中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望在使用sql查询前2天将列添加到表中。



我尝试了什么:



我能够获得表中的列



select * from sys.columns where table ='一个'



但是我需要在2天前左右更改列。

解决方案

检查这些:

sql server 2008 r2 - 查找最后一个时间表已更新 - Stack Overflow [ ^ ]

什么时候是SQL服务器表或视图上次更改? | Joe Webb博客 [ ^

I want to get the columns added to a table 2 days before using sql query.

What I have tried:

I am able to get the columns in a table

select * from sys.columns where table='A'

But i need to get the columns altered 2 days before or so.

解决方案

Check these:
sql server 2008 r2 - Find the last time table was updated - Stack Overflow[^]
When was a SQL Server table or view last altered? | Joe Webb Blog[^]


这篇关于如何在使用SQL查询前2天将列添加到表中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆