这样写是OK的:

select * from bind_history limit 10;
select id, passport_id, person_id, create_time, cast(is_bind AS char(1)) from bind_history_0000;

 

select id, passport_id, person_id, create_time, cast(is_bind AS char) from bind_history;

select id, passport_id, person_id, create_time, convert(is_bind,char(1))  from account.passport_bind_history limit 10;

select id, passport_id, person_id, create_time, convert(is_bind,char)  from account.passport_bind_history limit 10;


这样写不行:
select id, passport_id, person_id, create_time, cast(is_bind AS char(1)) from bind_history;

 

不建议使用

相关文章:

  • 2021-12-18
  • 2022-12-23
  • 2022-12-23
  • 2021-04-27
  • 2021-12-26
  • 2021-09-03
  • 2021-11-03
猜你喜欢
  • 2021-08-12
  • 2021-05-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-02
  • 2021-07-10
  • 2021-12-22
相关资源
相似解决方案