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");