I have a table called "users", in the table it contain a column/ field name "reg_date" how would i run an query to say: For all the users, if their feild "reg_date" is blank put "20th December 2008"

please let me know the data type of field "reg_date".

varchar(32)

select user_id,user_name,if(reg_date="","20th December 2008",reg_date) as 'Reg. Date' from users

where  user_id = Unique User ID
           user_name = Store User Name
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.