using (OracleCommand crtCommand = new OracleCommand("myCommand", conn1))
{
richTextBox1.AppendText(Environment.NewLine);
richTextBox1.AppendText(crtCommand.ExecuteScalar().ToString() + ";");
richTextBox1.AppendText(Environment.NewLine);
}
结果:
CREATE UNIQUE INDEX "XPKTBL_A" ON "TBL_A" ("FIELD_A1")
;
预期结果:
CREATE UNIQUE INDEX "XPKTBL_A" ON "TBL_A" ("FIELD_A1");
@AndreasNiedermair已在评论中建议,但修剪换行符应该有所帮助
richTextBox1.AppendText(crtCommand.ExecuteScalar().ToString().TrimEnd('\r', '\n', ' ') + ";");
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句