Linux Shell If Condition In Sql