我有一个客户、中间项目类型数据库。
Customers can buy many items and this is stored in the "middle" table, with just the two columns with customerid
and itemid
.
我目前正在使用我的仪表进行所有表格。
Is it recommended to use Innodb for the middle table in this structure?
我有一个客户、中间项目类型数据库。
Customers can buy many items and this is stored in the "middle" table, with just the two columns with customerid
and itemid
.
我目前正在使用我的仪表进行所有表格。
Is it recommended to use Innodb for the middle table in this structure?
我倾向于InnoDB,因为:
InnoDB should be used where data integrity comes a priority because it inherently takes care of them by the help of relationship constraints and transactions. Faster in write-intensive (inserts, updates) tables because it utilizes row-level locking and only hold up changes to the same row that’s being inserted or updated.
而
MyISAM is simpler to design and create, thus better for beginners. No worries about the foreign relationships between tables. Faster than InnoDB on the whole as a result of the simpler structure thus much less costs of server resources. Full-text indexing. Especially good for read-intensive (select) tables.
比较非常简单。 非行更适合需要经常插入和更新的数据危急情况。 而另一方面,我的国际宇宙航行科学院的运行情况较好,其应用并不完全取决于数据的完整性,而且大多只是选择和显示数据。
希望这一帮助。
INNODB Support foreign key restrictions 包括可在禁止令表上删除的单体字。
排放物删除(仅限量)使 your子能够自行清理。
If your junction table employs foreign key constraints with cascading deletes and you remove either a customer
or item
record, the matching middle
record will be removed so it does not become orphaned.
页: 1
因诺德允许你确定冷却 for子。
你们的伤口具有一些特点:
通常情况下,使用原基钥匙的提早决定:那些原基钥匙需要额外的编码限制,即你可能无法在没有客户或物品的情况下插入中间物。
I noticed that there were some threads with similar questions, and I did look through them but did not really get a convincing answer. Here s my question: The subquery below returns a Table with 3 ...
<?php $con=mysql_connect("localhost","mts","mts"); if(!con) { die( unable to connect . mysql_error()); } mysql_select_db("mts",$con); /* date_default_timezone_set ("Asia/Calcutta"); $date = ...
我把我的用心从使用QQL转向MySQL。 它与凯科特合作,现在不工作,因为我已经改变,使用MySQL。 这里的错误信息是:
We have a restaurant table that has lat-long data for each row. We need to write a query that performs a search to find all restaurants within the provided radius e.g. 1 mile, 5 miles etc. We have ...
Is it possible in php to return a specific row of data from a mysql query? None of the fetch statements that I ve found return a 2 dimensional array to access specific rows. I want to be able to ...
Our website was developed with a meta tag set to... <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> This works fine for M-dashes and special quotes, etc. However, I ...
What are some of the strategies being used for pagination of data sets that involve complex queries? count(*) takes ~1.5 sec so we don t want to hit the DB for every page view. Currently there are ~...
My table looks like person_id | car_id | miles ------------------------------ 1 | 1 | 100 1 | 2 | 200 2 | 3 | 1000 2 | 4 | 500 I need to ...