时间:2024-10-11 19:40:59
1、我们在程序中编写createcommand方法,该方法需要传入SQL语句。
3、这时候,我们就能调用事先编写好的SqlConnection打开的方法。
5、这时候,我们就能直接返回SqlCommand对象即可。