Skip to content

Instantly share code, notes, and snippets.

@williamjacksn
Created April 2, 2012 13:48
Show Gist options
  • Save williamjacksn/2283527 to your computer and use it in GitHub Desktop.
Save williamjacksn/2283527 to your computer and use it in GitHub Desktop.
Rainwave SQL / Users
select
user_id,
user_type,
username,
timestamp with time zone 'epoch' + user_regdate * interval '1 second' as registration_date,
timestamp with time zone 'epoch' + user_lastvisit * interval '1 second' as last_visit,
user_posts,
radio_inactive
from
phpbb_users
where
user_type in (0, 3);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment