Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. COI disagree with your singular rule. Tables are collections of objects and therefore must be plural. In your example `quiz.id` does not make sense because the attribute `id` is unique and therefore will refer to only one quiz. But when we talk about the quizzes stored in the quizzes table like, for example, `SELECT quizzes.name`, `WHERE quizzes.modified`, `SELECT * FROM quizzes`, it makes perfect sense to talk in plural since a resultset may contain more than one quiz. When I talk I say, hand me over those quizzes, I don't say hand me over those quiz.
      singulars
    2. CO@Ben You are contradicting yourself! `quiz.id` *does* refer to only one quiz! That's the whole point! I will concede that `SELECT * FROM quizzes` sounds natural, but in all other contexts, like `WHERE quiz.id = 1` etc, the singular is the *only* choice that sounds sane. Consider that each row is like a persisted version of an object. You don't name object classes in the plural, so don't name the row class (which is the table def) in the plural.
      singulars
    3. CObut it does sound natural! "Hand me over the quizzes, those quizzes that have the name test written on them" we need to talk in plural since we're asking for a resulset, a collection of items, not just one item. Again, `quiz.id = 1` sounds natural because the id is unique an will be referring to only one single quiz. But what about the name or the score `SELECT FROM quizzes WHERE score > 0` seems natural to me since I'll be expecting several quizzes, not just one. `SELECT FROM quizzes WHERE id = 1` sounds like "hand me those quizzes that have the id 1" which is perfectly valid.
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload