[MySQL] how to add innoDB to phpMyAdmin and create a foreign key ForeignKey phpmyadminMysql
How to add innoDB to phpMyAdmin
PhpNow (the free green Apache + PHP + MySQL environment package under Win32) finds that the database does not support the innoDB engine by default. many methods have been tried on the internet. the following method is valid, for your refer
OraclePLSQL-based FlashbackTable and foreign key constraints
Flashback Table and foreign key constraints in Oracle PL/SQL
We know that the Flashback Table can restore the drop
No actionIf you try to delete or modify a row, and the row's key is referenced by the foreign key in the existing row of another table, an error is generated and the delete/update statement is rolled back.Cascade, set null, and set defaultTables with foreign
directly, the record containing the foreign key is automatically deleted.SQL Cascade Delete-delete primary table delete from table simultaneously delete table with primary foreign key
Label:Sometimes when you want to delete a table, you are prompted to "cannot delete object ' Orders ' because the object is being referenced by a FOREIGN key constraint", because it is simple not to be irritable, it is referenced by the foreign keys of other tables, so it is not possible to delete the
TABLE Sys_user modify birthday char (10); Ø Delete Column birthday, have drop column keyword ALTER TABLE sys_user drop column birthday; Ø Modify the column name and attributes; Modify the birthday to CSRQ, and change the property to char (10) and not allow null not nulls ALTER TABLE Sys_user change birthday Csrq char (a) not null; 6) Modify the
I found a problem when I was studying the database today. The prompt is as follows:The alter table statement conflicts with the foreign key constraint "fk_student_parents_id_parents_id. This conflict occurs in the Database "school", table "DBO. Parents", column 'id '.I still need to paste my two tables into a graph:Thi
When you delete a table record, an error is reported that the foreign key constraint cannot be deleted.
If the relationship between tables cannot be solved, you can use the following statement to query the table on which the foreign key
Original: powerdesigner-vbsrcipt-Auto set Primary key, foreign key name, etc. (SQL Server)When designing SQL Server datasheets in PowerDesigner, the following functionality is required through VBScript scripting:Primary key: Pk_ta
Label:Establish dept and EMP Tables, and set the foreign keys of the EMP table with the dept_id in the Dept table CREATE TABLE Dept
(
dept_name nvarchar () not NULL,
dept_address nchar (+),
dept_id int constraint pk_ Dept PRIMARY
How to add innoDB to phpMyAdmin
PhpNow (the free green Apache + PHP + MySQL environment package under Win32) finds that the database does not support the innoDB Engine by default. Many methods have been tried on the Internet. The following method is valid, for your reference:
1. modify my. ini
In the MySQL directory of the phpNow tool (such... \ PHPnow-1.5.6 \ MySQL-5.0.90) Find my. ini: Search for skip-innodb. After searching, comment it out (# skip-innodb). Note that some people on the In
Seemingly useful, but not really used:SQL the role of the primary key and foreign key: Foreign key value rule: A null value or a reference primary key value. (1) when a non-null value is inserted, it cannot be inserted if the val
Label:Use LianxiGo--Create a departmental tableCREATE TABLE Bumen(Bmcode int PRIMARY KEY,--department numberBmname varchar (20),--Department nameBmceo varchar (20),--head of departmentBmtel varchar (20),--Department phone)Go--Create a people tableCREATE TABLE Renyuan(Code in
No foreign key multi-table query when writing HQL, directly using a comma-delimited table, where as a federated query criteria to query.The results of the query can be two kinds of,listYou need to use the following statement to qualify the query to return the result type.// list Query query = getsessionfactory (). Open
Recently, to delete a record in the software system, you have to associate the record with multiple tables and there are still constraints between them. Therefore, when creating a table, add constraints as follows:
SQL foreign key constraints can achieve cascading deletion and cascading update;
Oracle only supports c
Tags: pen specification BPA NOP PHP append MSN Host Solution1: Graphical interface setting foreign keyResolve:table-> Selected Table->design-> Select the field that you want to set the foreign key to, choose Relationships, select Add, select the right ellipsis (see figure I), and then select the relationship in the
X First find the constraint name
And then delete it
I'll give you an example.
--Test environment
--Main Table
CREATE table test1 (ID int primary key not null,value int)
Insert Test1 Select 1,2
Go
--From the table
CREATE
--
If the data in obom_stru_expand1 and obom_stru_expand1 is deleted by mistake, you need to import the data
--
The current database, but the two tables contain foreign keys. You need to disable the data before causing
Alter
Table Obom_stru_expand2
Nocheck
Constraint
All
Alter
Table Obom_stru_expand2 disable
Trigger
All
Alter
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.