Hi,
What MySQL property is used to create a surrogate key in MySQL?
Thanks
Mysql Property
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Prabhu RajaRank #861 · 2.6K reputationPosted Jan 11, 2012, 6:46 AM EST
Satyapriya NayakRank #47 · 31.5K reputationPosted Jan 11, 2012, 6:24 AM EST
A surrogate key in a database is a unique identifier for either an entity in the modeled world or an object in the database. The surrogate key is not derived from application data.A surrogate key is frequently a sequential number (e.g. a Sybase or SQL Server "identity column", a PostgreSQL
serial, an OracleSEQUENCEor a column defined withAUTO_INCREMENTin MySQL) but doesn't have to be. Having the key independent of all other columns insulates the database relationships from changes in data values or database design (making the database more agile) and guarantees uniqueness.Please refer the below link
http://blog.mclaughlinsoftware.com/2009/05/16/surrogate-keys-uses/
Thanks
Arjun PanwarRank #254 · 9.9K reputationPosted Jan 12, 2012, 12:58 PM EST