跳转到正文

Docker 验证证据 ​

SQL Server 已验证 · Verified 🕒 快照采集: 2026-08-23 15:15:53 UTC
🐳 镜像:server:由 SQLSERVER_IMAGE 锁定
🛠️ 关键工具:sqlservrsqlcmd
🚀 运行/交互CREATE TABLE → INSERT → SELECT → sys.tables → SHOWPLAN
docker-session.out.txt
$ sqlcmd -S localhost -U sa -C -Q "SELECT 1"
-----------
          1

(1 rows affected)

$ sqlcmd fixed T-SQL session
(3 rows affected)
id          name                 score      
----------- -------------------- -----------
          3 Carol                         40
          1 Alice                         30

(2 rows affected)
name                                                                                                                            
--------------------------------------------------------------------------------------------------------------------------------
hello_items                                                                                                                     

(1 rows affected)
StmtText                                         
-------------------------------------------------
SELECT * FROM dbo.hello_items WHERE score >= 30  

(1 rows affected)
StmtText                                                                                                                                                                      
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  |--Clustered Index Scan(OBJECT:([master].[dbo].[hello_items].[PK__hello_it__3213E83FADD8674B]), WHERE:([master].[dbo].[hello_items].[score]>=CONVERT_IMPLICIT(int,[@1],0))) 

(1 rows affected)

Released under the MIT License.