在 SQL Server 中编写 sql 语句时,如何从表名中删除 dbo 前缀? [英] How can I remove the dbo prefix from my table names when I write my sql statements in SQL Server?

查看:77
本文介绍了在 SQL Server 中编写 sql 语句时,如何从表名中删除 dbo 前缀?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的架构中的所有表都以 dbo 为前缀.现在在我的 sql 语句中,我不喜欢一直使用 dbo.tablename.任何解决方法或配置更改?

All the tables in my schema have a prefix of dbo. Now in my sql statements, I don't like using dbo.tablename all the time. Any workarounds or configuration changes?

推荐答案

其实你应该离开那些 dbo.语句,因为您的 SQL 会更快,因为优化器不必查找架构

Actually you should leave those dbo. statements because you SQL will be faster since the optimizer doesn't have to lookup the schema

也请查看此链接 没有所有者资格的过程调用对性能的影响

这篇关于在 SQL Server 中编写 sql 语句时,如何从表名中删除 dbo 前缀?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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