如何让mysql接受sybase数据库..表符号

发布于 2024-08-07 10:05:41 字数 197 浏览 2 评论 0原文

我正在将 sybase 应用程序移植到 mysql,当然存在大量的 sql 兼容性问题,但我认为在不更改每个 sql 的情况下没有一种简单的方法可以解决这个问题,那就是在 sybase 中您可以通过 db 引用表。 .table 表示法,但在 mysql 中它需要 db.table。 在这方面我有点站在 mysql 一边,但事实就是这样。 有没有办法让 mysql 接受该语法?

I'm porting a sybase application to mysql and of course there's tons of sql compatibility issues, but one that I don't see an easy way out of without changing every single sql is that in sybase you can refer to a table by db..table notation, but in mysql it requires db.table.
I'm kinda on mysql's side on this one, but this is what it is.
Is there a way to get mysql to accept that syntax?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

时光病人 2024-08-14 10:05:41

使用像notepad++这样的程序,它能够在整个文件目录中搜索和替换。搜索 .. 并替换为 .

use a program like notepad++ that has the ability to search and replace across a whole directory of files. do a search for .. and replace with .

勿忘初心 2024-08-14 10:05:41

我最终做了这样的事情:

global replace .. with " + Defs.DELIMETER + "
Then replace " + Defs.DELIMETER + ".  with ...  to take care of elipses
Then replace " + Defs.DELIMETER + "" + Defs.DELIMETER + "  with .... for those cases.

大多数人都这样了。
所以至少现在它很容易改变。

I ended up doing something like this:

global replace .. with " + Defs.DELIMETER + "
Then replace " + Defs.DELIMETER + ".  with ...  to take care of elipses
Then replace " + Defs.DELIMETER + "" + Defs.DELIMETER + "  with .... for those cases.

That got most of them.
So at least now it's easily changable.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文