foreign-keys
Determine InnoDB FK Constraints without information_schema
I\'m writing some code to inspect a MySQL database structure, and need information about Foreign K开发者_StackOverflowey constraints (on InnoDB tables).[详细]
2023-03-28 22:34 分类:问答TFS - Database deploy - Setting CHECK or NOCHECK on Constraints
We are currently using Visual Studio 2010 and have a Database project that contains all of our database objects.We typically deploy the database via a build script to our CI, QA and UAT environments.F[详细]
2023-03-28 22:15 分类:问答Restore InnoDB tables: very very slow?
I used to deal with Myi开发者_运维问答sam tables, but for foreign connections I changed to Innodb tables (converted, and added foreign keys). I often download the database from the server, and fill th[详细]
2023-03-28 20:46 分类:问答Having trouble with foreign key
I am trying to have categories in my budget2000 table be the foreign key to category in mainBudget.Category is not a unique number so it cannot be a primary key.When I run the code I get the famous er[详细]
2023-03-28 18:25 分类:问答SQL FK and Pre-Checking for Existence
I was wondering what everyone\'s opinion was with regard to pre-checking foreign key look ups before INSERTS and UPDATES versus letting the database handle it. As you kn开发者_运维问答ow the server wi[详细]
2023-03-28 01:16 分类:问答Does it make sense to use a varchar column as foreignkey reference?
Given two tables books and authors where each of them already have a unique key which is of varchar type which identifys them throughout my ecosystem. Does it make sense to use those keys as Foreignke[详细]
2023-03-27 22:43 分类:问答Error when trying to DELETE foreign key: “ERROR 1025 (HY000):”
I am running into some trouble trying to delete a foreign key. Could someone please help? Here’s my SHOW CREATE TABLE catgroup:[详细]
2023-03-27 22:34 分类:问答How to delete all data without breaking referential integrity using Doctrine?
I\'ve put together a unit testing plugin for Symfony 1.4 that attempts to manage the database automatically, similarly to the way Django\'s test framework does it (destroy and rebuild the database bet[详细]
2023-03-27 19:57 分类:问答MySQL Multi-Delete. Is it possible to multi-delete referenced rows?
If I have a parent table and a child table, is it possible to multi-delete the rows in them without having a \"ON DELETE CASCADE\" constraint?[详细]
2023-03-27 09:53 分类:问答Adding foreign key to existing table gives error 1050 table already exists
I\'ve a table CustomizationSet with the columns: customization_set_guid (which is a non-nullable guid and also the primary key)[详细]
2023-03-26 23:06 分类:问答