add export by select sql