With the increase in the amount of data of Database management system,the speed of data query willl become more and more slow.So how to design efficient and reasonable query is very important.This papaer is based on the application examples and combinated database theory,introduces how to optimize SQL query by using execution plan to improve system performance.