Skip to content

Instantly share code, notes, and snippets.

@gintsgints
Created August 14, 2015 15:31
Show Gist options
  • Save gintsgints/e96e0f1cea13b0e3b2a6 to your computer and use it in GitHub Desktop.
Save gintsgints/e96e0f1cea13b0e3b2a6 to your computer and use it in GitHub Desktop.
Select:
SELECT "id", "username", "createdAt", "updatedAt" FROM "Users" "User" WHERE "User"."username" = 'John' AND ROWNUM <= 1
Returned rows:
1,
'John',
Fri Aug 14 2015 18:24:28 GMT+0300 (FLE Daylight Time),
Fri Aug 14 2015 18:24:28 GMT+0300 (FLE Daylight Time)
Key, Value arguments for function:
key: 1
value: { isNewRecord: false,
raw: true,
attributes: [ 'id', 'username', 'createdAt', 'updatedAt' ] }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment