make sql const