为提高效率,提问时请提供以下信息,问题描述清晰可优先响应。
【DM版本】:DM8
【操作系统】:windows
【CPU】:
【问题描述】*:查询语句条件只有两个disabled和suspended,并且类型都是BIT,查询报错:
select ‘false’ as QUERYID,id, type, exec_file_type, exec_file, exec_args, kill_command, output_model_type, next_worker_type, “desc”, suffix, weight, queue_timeout, queue_timeout_alarm, exec_timeout,resource_zip, remove_result, avg_exec_time, max_await, min_await, priority, disabled, suspended, fixed, create_time, update_time, receiver, input_type, output_type, exec_options, dispatch_mode, master_worker_type, connect_mode, report_progress FROM bimface_job.worker_type WHERE disabled = false and suspended = false order by priority asc;
BIT 类型:
BIT 类型用于存储整数数据 1、0 或 NULL,可以用来支持 ODBC 和 JDBC 的布尔数据类型。DM 的 BIT 类型与 SQL SERVER2000 的 BIT 数据类型相似。
TINYINT 类型:
用于存储有符号整数,精度为 3,标度为 0。取值范围为:-128~+127。
你这里如果类型是BIT的话,条件使用: disabled = 0 and suspended = 0
如果是TINYINT 类型,disabled = false and suspended = false这种写法就没问题。