sql语句如何用if等判断?语法?用JS脚本的举个例!应该写成var sql1="select * from shujubiao"var sql2=" where xuhao like "+"'%"+xhao+"%2023-04-30JavaScript870