Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 28373

Structured Query Language (SQL) is a language for managing data in relational database management systems. This tag is for general SQL programming questions; it is not for Microsoft SQL Server (for this, use the sql-server tag), nor does it refer to specific dialects of SQL on its own.

0 votes

Why is prefixing column names considered bad practice?

The basic structure is: [Object] [Qualifier] Property RepresentationTerm with delimiters between the elements: SQL doesn't play nice with spaces in column names and underscore works well visually. … On implementation e.g. in SQL, some folk like to omit the Object, Qualifier and Property sub-elements when the table name provides context e.g. person_first_name becomes first_name in the Person table …
onedaywhen's user avatar
2 votes

Should a primary key be immutable?

It is not bad practice to have a key whose values may change. The properties of a good key include stability. Immutability is ideal but not a prerequisite. Introducing an artificial key for the sake …
onedaywhen's user avatar