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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

MySQL 8.0 is now generally available

221 点作者 theodorejb大约 7 年前

11 条评论

tzs大约 7 年前
I had hoped that the SQL improvements would fix this annoyance, but according to the documentation they did not:<p><pre><code> create table fib ( a integer, b integer ); insert into fib (a, b) values (1, 0); update fib set a=a+b, b=a; update fib set a=a+b, b=a; update fib set a=a+b, b=a; update fib set a=a+b, b=a; update fib set a=a+b, b=a; select a, b from fib; </code></pre> The correct result according to the SQL standard is a == 8 and b == 5. In MySQL the result is a == 16 and b == 16. They do document this in the manual, saying UPDATE evaluates the assignments left to write, and note that this deviates from the standard.<p>MariaDB is the same prior to 10.3.5. Starting with 10.3.5 it defaults to left to write evaluation, but you can set the SIMULTANEOUS_ASSIGNMENT mode flag to make UPDATE evaluate the assignments simultaneously instead of left to right.<p>I believe that all other common SQL databases (Sqlite, PostgreSQL, Oracle, Microsoft SQL Server) follow the standard.
评论 #16879538 未加载
评论 #16882003 未加载
dankohn1大约 7 年前
I think it&#x27;s disappointing that MySQL is developed in private and then only pushed to GitHub when released.<p>I had noticed that it had not been updated in 3 months:<p>MySQL in the Cloud Native Interactive Landscape <a href="https:&#x2F;&#x2F;landscape.cncf.io&#x2F;grouping=landscape&amp;landscape=database-and-data-warehouse&amp;selected=my-sql" rel="nofollow">https:&#x2F;&#x2F;landscape.cncf.io&#x2F;grouping=landscape&amp;landscape=datab...</a><p>Diff showing last commit <a href="https:&#x2F;&#x2F;github.com&#x2F;cncf&#x2F;landscape&#x2F;commit&#x2F;65f79c653e0fceac9f3b2e26aa4337a12eceebb3#diff-ea4f83e4d8108e8fdb17ec90794f9bdf" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;cncf&#x2F;landscape&#x2F;commit&#x2F;65f79c653e0fceac9f3...</a>
评论 #16880889 未加载
talawahdotnet大约 7 年前
One of the most interesting new features to me is full support of MySQL 8.0 as a JSON based document store using the new DevAPI[1].<p>There is a separate blog post highlighting it: <a href="https:&#x2F;&#x2F;mysqlserverteam.com&#x2F;mysql-8-0-announcing-ga-of-the-mysql-document-store&#x2F;" rel="nofollow">https:&#x2F;&#x2F;mysqlserverteam.com&#x2F;mysql-8-0-announcing-ga-of-the-m...</a><p>1. <a href="https:&#x2F;&#x2F;dev.mysql.com&#x2F;doc&#x2F;x-devapi-userguide&#x2F;en&#x2F;devapi-users-introduction.html" rel="nofollow">https:&#x2F;&#x2F;dev.mysql.com&#x2F;doc&#x2F;x-devapi-userguide&#x2F;en&#x2F;devapi-users...</a>
dancek大约 7 年前
There are some very useful features there, but I can&#x27;t help but think that MySQL should have had them a long time ago.<p>Is there something MariaDB doesn&#x27;t have? I&#x27;m genuinely curious as I&#x27;ve only really followed PostgreSQL development.
评论 #16878825 未加载
评论 #16877246 未加载
评论 #16876290 未加载
评论 #16876246 未加载
评论 #16881659 未加载
semiquaver大约 7 年前
&gt; Reliability: DDL statements have become atomic and crash safe, meta-data is stored in a single, transactional data dictionary. Powered by InnoDB!<p>To clarify, does this mean that DDL is now fully transactional the way it is in postgres?
评论 #16876549 未加载
crazygringo大约 7 年前
Side question, but why the jump from 5.7 to 8.0?<p>What happened to 6.0 and 7.0?<p>Edit: found a kind of answer, though I never heard of 6 and 7 being &quot;used&quot; before. [1]<p>&gt; <i>Why did MySQL version numbering skip versions 6 and 7 and go straight to 8.0?</i><p>&gt; <i>Due to the many new and important features we were introducing in this MySQL version, we decided to start a fresh new series. As the series numbers 6 and 7 had actually been used before by MySQL, we went to 8.0.</i><p>[1] <a href="https:&#x2F;&#x2F;dev.mysql.com&#x2F;doc&#x2F;refman&#x2F;8.0&#x2F;en&#x2F;faqs-general.html#faq-mysql-why-8.0" rel="nofollow">https:&#x2F;&#x2F;dev.mysql.com&#x2F;doc&#x2F;refman&#x2F;8.0&#x2F;en&#x2F;faqs-general.html#fa...</a>
评论 #16876413 未加载
评论 #16876339 未加载
评论 #16876347 未加载
评论 #16876331 未加载
douglasfshearer大约 7 年前
&gt; MySQL 8.0 delivers SQL window functions.<p>Great to see these in a MySQL release. Something so worth having I once had a script which would automate MySQL -&gt; Postgres for data analytics purposes.
pmuk大约 7 年前
Does anyone have any idea when this will be available on Amazon RDS?
评论 #16877235 未加载
go_prodev大约 7 年前
Woohoo I&#x27;ve been eagerly awaiting this. I use redshift postgres and SQL server at work and looking to migrate from postgres to MySQL for my personal ML projects.<p>Window functions have been a long time coming and I personally can&#x27;t wait!
评论 #16876235 未加载
评论 #16876541 未加载
评论 #16876446 未加载
评论 #16876488 未加载
mdcallag大约 7 年前
Release looks great. I can&#x27;t wait for MyRocks to arrive to make it even better.
ta65377777大约 7 年前
I demand satiation.