select to_char(blrq, 'yyyy-MM-dd HH24:mi:ss'),
 *
  from fjxx 
 where   tablename = 'foster_service_info'
   and fjlb = '4'
   and fjid = '8081C764039F183C'
 order by fjmc
  执行提示缺少表达式 

解决方案 »

  1.   

    select to_char(blrq, 'yyyy-MM-dd HH24:mi:ss'),
     t.*
      from fjxx t 
     where   tablename = 'foster_service_info'
       and fjlb = '4'
       and fjid = '8081C764039F183C'
     order by fjmc
      

  2.   


    select to_char(blrq, 'yyyy-MM-dd HH24:mi:ss'),a.*
      from fjxx a
     where tablename = 'foster_service_info'
       and fjlb = '4'
       and fjid = '8081C764039F183C'
     order by fjmc