为什么下段代码总提示"括号内的字符串没有正确结束"
string strInsert=" insert into code_save (id,name,soft_name,server_name,codes,updata_date) values (";
strInsert+=n + " , '";
strInsert+=Names + "' , '";
strInsert+=Soft + " ', '";
strInsert+=Server + " ',";
strInsert+=new_code + " ',";
strInsert+=date + " )";
string strInsert=" insert into code_save (id,name,soft_name,server_name,codes,updata_date) values (";
strInsert+=n + " , '";
strInsert+=Names + "' , '";
strInsert+=Soft + " ', '";
strInsert+=Server + " ',";
strInsert+=new_code + " ',";
strInsert+=date + " )";
解决方案 »
- 如何进行2个控件间连线,并且连线后鼠标移动控件连线也随着移动
- 关于FileType
- 打开子窗口,想让父窗口蒙上一层半透明灰色的层,这个怎么做?
- 第一次发贴,求教个奇怪的问题,困扰好久了,是关于HTTPS的SSL证书问题的,达人帮忙看下吧
- 验证码识别程序
- 请问在WEB页面中能否实现锁定功能
- DataGridView如何使所有单元格总是显示控件(不论它们是否处于编辑状态)?
- 我FORM上放了个PANEL,然后在PANEL上画了些图形,我想把PANEL上的图形都存到一个BMP中去,请高手指点!
- 安装文件如何把数据库(sql)也同时创建
- excel问题
- richTextBox里内容的打印?
- VS2003自带的打包程序可以在安装过程中运行bat文件吗?
strInsert+=new_code + " ',";为什么不用System.Text.StringBuilder?