Select a,b,c from Table1 where a in (Select a from Table2)
2. 提前5分钟显示
Select * from Table1 where datediff(minute, Getdate(), 开始时间字段) <5
3. 显示文章、提交人和最后回复时间
Select A.title, A.username, B.adddate From tablename a, (Select max (adddate) adddate from tablename where tablename.title=a.title) B 备注:这个是从书上抄下来的,我觉得回复表应该和主表是不同的表,而且也不应该用 title 来关联,应该有文章ID来关联,这个不重要,重要的是打开思路就对了。呵呵
4. 将数字编码成汉字
SELECT Name,
checked=
case checked
when 1 then ‘已审核’
when 0 then ‘未审核’
end
FROM Customer 5. 只复制表结构
Select * into tableB from tableA where 1<>1
或
Select top 0 * into tableB from tableA 6.复制表数据
select * into New_Customer from customer (插入一个新表)
或
insert into CFM(Type,Vacuum) Select Name,custid from Customer (插入一个已存在的表,这个用法很灵活) 7.将数据表中的数据呈几何级的增涨。
insert into CFM(Type,Vacuum) Select Type,Vacuum from CFM (一般没有什么用,用于程序员自娱自乐的测试)
VPS(Virtual Private Server 虚拟专用服务器)技术,将一部服务器分割成多个相互隔离的虚拟专享服务器的优质服务。 每个VPS的运行和管理都与一台独立主机完全相同,都可分配独立公网IP地址、独立操作系统、独立超大空间、独立内存、独立CPU资源、独立执行程序和独立系统配置等。 用户除了可以分配多个虚拟主机及无限企业邮箱外,更具有独立服务器功能,可自行安装程序,单独重启服务器,总而言之,VPS是一项具备高弹性、高质量及低成本效益的服务器解决方案,是高端虚拟主机用户的最佳选择。您不再受其他用户程序对您造成的影响, 得到的是更加公平的资源分配,远远低于虚拟主机的故障率.
VPS (Virtual Private Server ) technology, a server will be split into multiple virtual dedicated server to enjoy quality service. Each VPS can be allocated independent public network IP address, operating system independent, the independent super-space, independent memory, CPU resources, independent, independent implementation of the procedures and system configuration, such as an independent. Except the user can be assigned multiple virtual hosts and unlimited E-mail, but also an independent server function, self-installation process, restart the server alone. High-end virtual host the user’s best choice. You are no longer subject to the procedures to other users of your impact is to be a more equitable distribution of resources, far less than the failure rate of the virtual host
ETesteris a freeWebBrowserthat allows you to have the rendering and javascript engines ofIE8,IE7IE 6 andIE5.5 on Windows 7, Vista and XP, as well as the installed IE in the same process. New in v0.4.2: Added developer options to enable/disable browser features !
This is an alpha release, so feel free to post comments/bugs on theIETester forum. Requirement: Windows 7, Windows Vista or Windows XP withIE7minimum (WindowsXP/IE6config has some problems andIE8instance do not work under XP withoutIE7)
最新评论