improve the sql and sql show view.
improve the sql and sql show view.