English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I have a table called register. I want to prevent inserting of the same data in the fields of register table. Please help me....

2006-09-22 23:38:38 · 3 answers · asked by Dodz 1 in Education & Reference Higher Education (University +)

3 answers

Create a unique index on the fields of the table. It should generate an error if you attempt to add or modify a row that would cause a duplicate. I have had problems with this when using the MyISAM database engine (but that was a long time ago it may have been fixed). If this doesn't work when using the MyISAM engine, create your table using the InnoDB engine and it should work fine.

CREATE TABLE tablename (
...
) ENGINE = InnoDB;

I only use the InnoDB engine because in version 4.x of MySQL it supports transactions and referential integrity whereas the MyISAM engine does not.

2006-09-25 06:51:19 · answer #1 · answered by Jeff Alexander 2 · 0 0

you purely write a query to insert or replace the database. For this you go with own abode page.For e mail yo choose the mail() functionality. the two somewhat complicated, so examine the own abode page instruction manual and the mysql instruction manual, the two available on line.

2016-10-01 06:49:47 · answer #2 · answered by ? 4 · 0 0

What I can do, is to tell you, get on with the program!
sam? is that you'r name or you mean same??

2006-09-22 23:41:32 · answer #3 · answered by alfonso 5 · 0 0

fedest.com, questions and answers