Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在通过code.google和github学习 Dapper 。我注意到一些表名有'#'作为前缀。我尝试使用“#”,但它不起作用,我收到一条错误消息,提示我的 SQL 语法有错误。示例中的“#”是什么意思?
在 SQL-Server 中,#tablename表示一个临时表(可以是基于连接的,也可以是存储过程的本地表)。##tablename表示全局临时表。还有@tablenamewhich 是表变量(或者也可以是参数、变量或表值参数)。
#tablename
##tablename
@tablename