免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3104 | 回复: 5
打印 上一主题 下一主题

新版的MYSQL支持外键了吗? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2003-04-12 14:10 |只看该作者 |倒序浏览
谢谢

论坛徽章:
5
荣誉会员
日期:2011-11-23 16:44:17CU大牛徽章
日期:2013-09-18 15:15:15CU大牛徽章
日期:2013-09-18 15:15:45未羊
日期:2014-02-25 14:37:19射手座
日期:2014-12-26 22:55:37
2 [报告]
发表于 2003-04-12 20:56 |只看该作者

新版的MYSQL支持外键了吗?

[quote]原帖由 "xunle"]谢谢[/quote 发表:

很早就支持了,不过必须用innodb表,缺省的myisam不行。

论坛徽章:
0
3 [报告]
发表于 2003-04-13 19:25 |只看该作者

新版的MYSQL支持外键了吗?

新出的4.10支持了。
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

MySQL 4.1.0, a new version of the popular Open Source Database, has been
released. It is now available in source and binary form for a number of
platforms from our download pages at http://www.mysql.com/downloads/ and
mirror sites.

Note that not all mirror sites may be up to date at this point in time -
if you can't find this version on some mirror, please try again later or
choose another download site.

This is the first Alpha development release of the 4.1 tree, adding many
new features (see below). As this code is currently labelled "Alpha", we
do not recommend that this version be used in production environments yet!

However, we encourage you to test and evaluate it and, more importantly,
report any bugs or observations to our bug tracking database at
http://bugs.mysql.com. Please note, that for us to resolve a bug report, a
reproducible test is required. See "How to report a bug" at
http://bugs.mysql.com/how-to-report.php for more details before filing a bug
report. We appreciate your support!

Some new features include:

* Subqueries:
        SELECT * FROM t1 WHERE t1.a=(SELECT t2.b FROM t2);

        SELECT * FROM t1 WHERE (1,2,3) IN (SELECT a,b,c FROM t2);

* Derived tables:
        SELECT t1.a FROM t1, (SELECT * FROM t2) t3 WHERE t1.a=t3.a;

* `INSERT ... ON DUPLICATE KEY UPDATE ...' syntax.  This allows you
   to `UPDATE' an existing row if the insert would cause a duplicate
   value in a `PRIMARY' or `UNIQUE' key. (`REPLACE' allows you to
   overwrite an existing row, which is something entirely different.)
   (See http://www.mysql.com/doc/en/INSERT.html for more info)

* A newly designed `GROUP_CONCAT()' aggregate function.
   (See http://www.mysql.com/doc/en/Group_by_functions.html for more info)

* Extensive Unicode (UTF support.

* Character sets can be defined per column, table and database.

* `BTREE' index on `HEAP' tables.

* Support for OpenGIS (Geographical data).
   (See http://www.mysql.com/doc/en/GIS_spatial_extensions_in_MySQL.html
   for more info)

* `SHOW WARNINGS' shows warnings for the last command.
   (See http://www.mysql.com/doc/en/SHOW_WARNINGS.html for more info)

* Faster binary protocol with prepared statements and parameter
   binding.
   (See http://www.mysql.com/doc/en/C_API_Prepared_statements.html for
   more info)

* Multi-line queries: You can now issue several queries at once and
   then read the results in one go.  *Note C API multiple queries::.
   (See http://www.mysql.com/doc/en/C_API_multiple_queries.html for more
   info)

* Create Table: `CREATE [TEMPORARY] TABLE [IF NOT EXISTS] table LIKE
   table'.

* Server based `HELP command' that can be used in the `mysql'
   command line client (and other clients) to get help for SQL
   commands.

For a more detailed list of changes in MySQL 4.1.0, please also see
http://www.mysql.com/doc/en/News-4.1.0.html and
http://www.mysql.com/doc/en/MySQL_4.1_In_A_Nutshell.html

Bye,
        LenZ
- --
For technical support contracts, visit https://order.mysql.com/?ref=mlgr
   __  ___     ___ ____  __
  /  |/  /_ __/ __/ __ \/ /      Mr. Lenz Grimmer <lenz@mysql.com>;
/ /|_/ / // /\ \/ /_/ / /__     MySQL AB, Production Engineer
/_/  /_/\_, /___/\___\_\___/     Hamburg, Germany
       <___/   www.mysql.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux)
Comment: For info see http://quantumlab.net/pine_privacy_guard/

iD8DBQE+lHf5SVDhKrJykfIRApiGAJ97E/+HOtg8NtknyX9YAh+TiyCi8QCfRIBF
aNHIFg5ZfyYuinpEcjBko9U=
=Lakx
-----END PGP SIGNATURE-----

论坛徽章:
5
荣誉会员
日期:2011-11-23 16:44:17CU大牛徽章
日期:2013-09-18 15:15:15CU大牛徽章
日期:2013-09-18 15:15:45未羊
日期:2014-02-25 14:37:19射手座
日期:2014-12-26 22:55:37
4 [报告]
发表于 2003-04-13 20:13 |只看该作者

新版的MYSQL支持外键了吗?

什么新出的4.10支持4.1带来的新特性是子查询,3.53max版本就有外键。

论坛徽章:
0
5 [报告]
发表于 2003-04-16 11:39 |只看该作者

新版的MYSQL支持外键了吗?

不支持的吧
自己控制把

论坛徽章:
5
荣誉会员
日期:2011-11-23 16:44:17CU大牛徽章
日期:2013-09-18 15:15:15CU大牛徽章
日期:2013-09-18 15:15:45未羊
日期:2014-02-25 14:37:19射手座
日期:2014-12-26 22:55:37
6 [报告]
发表于 2003-04-16 14:52 |只看该作者

新版的MYSQL支持外键了吗?

原帖由 "twos" 发表:
不支持的吧
自己控制把

不许造谣
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP