SELECT lu.uid , pd.name , ms.num , TO_CHAR(ms.date,'YYYY/MM/DD HH24:MI')
 FROM login_usr lu, product pd, master ms 
 WHERE lu.uid = ms.person and ms.code = pd.code