SELECT id,
       member_id,
       title,
       db_desc,
       db_type,
       db_host,
       db_port,
       db_name,
       db_username,
       db_password,
       is_deleted,
       CREATOR,
       CREATED_TIME,
       MODIFIER,
       MODIFIED_TIME,
       SYS_VERSION
FROM biz_knowledge_database
where is_deleted = 'N' and (member_id = 0 <<or member_id = :memberId>>)
<<and LOCATE(:search ,title)>>
order by member_id, MODIFIED_TIME desc