Bryce W Nesbitt <[EMAIL PROTECTED]> writes: > SELECT username,last_name > FROM eg_member ORDER BY username::integer;
> But postgres 7 rejects this with "ERROR: cannot cast type character > varying to integer". As a general rule, you need to be more specific than that about which version you are working with ;-) You may find that username::text::integer will work, depending on which 7.x this actually is. regards, tom lane ---------------------------(end of broadcast)--------------------------- TIP 6: explain analyze is your friend