我想在SQL Server中从select查询结果创建一个表,我试过了
create table temp AS select.....
Run Code Online (Sandbox Code Playgroud)
但是我收到了一个错误
关键字"AS"附近的语法不正确
我尝试使用SYS查询生成50-100个表
SELECT windows_release, windows_service_pack_level,
windows_sku, os_language_version
FROM sys.dm_os_windows_info OPTION (RECOMPILE); -- DE????RSE INSERT ETSIN AYNI ISE DE???MES?N
-- Gives you major OS version, Service Pack, Edition, and language info for the operating system
-- SQL Server Services information (SQL Server 2008 R2 SP1 or greater)
SELECT servicename, startup_type_desc, status_desc,
last_startup_time, service_account, is_clustered, cluster_nodename
FROM sys.dm_server_services OPTION (RECOMPILE);
-- Hardware information from SQL Server 2008
-- (Cannot distinguish between HT and multi-core)
SELECT cpu_count AS [Logical CPU Count], hyperthread_ratio AS [Hyperthread …Run Code Online (Sandbox Code Playgroud)