i want to know simple coding how to check duplicate record.

Recommended Answers

All 4 Replies

in a database or what?

yes..in database

use 'unique' on the column in the database. it won't allow the same data twice in that column.

Use SELECT DISTINCT in the query. This will discard duplicate rows. It is better to set constraints like mentioned above to eliminate duplicates from being inserted though.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.