TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Choosing between Postgres and MySQL is hard

2 点作者 tianzhou将近 2 年前

1 comment

ttfkam将近 2 年前
&gt; MySQL is case-insensitive by default. Postgres is case-sensitive by default.<p>Minor quibble:<p>If you don&#x27;t quote identifiers, they are case-insensitive in Postgres. (Case folding to lowercase by default, which ends up being a distinction without a difference.) SQL keywords are always case-sensitive. If you put double quotes around them though, the identifiers preserve case.<p><pre><code> SELECT * FROM &quot;foo&quot;; </code></pre> is the same as<p><pre><code> SELECT * FROM foo; </code></pre> is the same as<p><pre><code> SELECT * FROM Foo; </code></pre> But this next one will tell you it doesn&#x27;t know which table you&#x27;re talking about:<p><pre><code> SELECT * FROM &quot;Foo&quot;; </code></pre> Unless you made the table that way:<p><pre><code> CREATE TABLE &quot;Foo&quot; (); </code></pre> In which case only the last SELECT example will work.