On 11 March 2011 14:14, Alexander Farber <alexander.farber@xxxxxxxxx> wrote:
# select u.uid, u.name, u.created
from drupal_field_data_field_gender g, drupal_users u
where g.field_gender_value='Robot' and
u.uid=g.entity_id and u.created::timestamp > now() - interval '1 day';
ERROR: Âcannot cast type integer to timestamp without time zone
LINE 4: u.uid=g.entity_id and u.created::timestamp > now() - interva...
What should I use instead of ::timestamp please?
Hi,
try this:Â
ÂÂ Âto_timestamp(u.created)Â
regards
Szymon