假如我有如下内容在richTextBox里:
string insertSql;
insertSql = "INSERT INTO spt_monitor ( pack_errors, connections, pack_sent, pack_received, idle) VALUES( pack_errors, connections, pack_sent, pack_received, idle )";
sda.InsertCommand = new SqlCommand(insertSql, connection);
sda.InsertCommand.Parameters.Add( "@pack_errors", SqlDbType.Int, 4, "pack_errors" );
sda.InsertCommand.Parameters.Add( "@connections", SqlDbType.Int, 4, "connections" );
sda.InsertCommand.Parameters.Add( "@pack_sent", SqlDbType.Int, 4, "pack_sent" );
sda.InsertCommand.Parameters.Add( "@pack_received", SqlDbType.Int, 4, "pack_received" );
sda.InsertCommand.Parameters.Add( "@idle", SqlDbType.Int, 4, "idle" );
我怎么才能取得所有""引号里的内容?包括双引号
求好的算法,谢谢
string insertSql;
insertSql = "INSERT INTO spt_monitor ( pack_errors, connections, pack_sent, pack_received, idle) VALUES( pack_errors, connections, pack_sent, pack_received, idle )";
sda.InsertCommand = new SqlCommand(insertSql, connection);
sda.InsertCommand.Parameters.Add( "@pack_errors", SqlDbType.Int, 4, "pack_errors" );
sda.InsertCommand.Parameters.Add( "@connections", SqlDbType.Int, 4, "connections" );
sda.InsertCommand.Parameters.Add( "@pack_sent", SqlDbType.Int, 4, "pack_sent" );
sda.InsertCommand.Parameters.Add( "@pack_received", SqlDbType.Int, 4, "pack_received" );
sda.InsertCommand.Parameters.Add( "@idle", SqlDbType.Int, 4, "idle" );
我怎么才能取得所有""引号里的内容?包括双引号
求好的算法,谢谢
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货