C# error ORA-00911: invalid character

environment

  • VS2019
  • Windows 2010 64

background

I was really troubled by this error ORA-00911: invalid character . It was really amazing. To the naked eye, there was no problem with this SQL. However, when executed, an error was reported, which made me vomit while debugging.

reason

In the code, I used spliced ​​SQL, and there was a space in it that could not be recognized by the naked eye. Only when I put it in the console in developer mode could I see the difference: there was an unknown symbol in the original SQL! ! !

Original sentence

 string sql = "select * from  C_SOURCE_VIDEO​";

console

Summarize

Many times, we always feel that this stupid system makes us angry, but in fact, the probability of system problems is quite low, especially when everything else is running normally, we must eliminate the problem step by step, one by one. Check it out a little bit and be patient. Obviously, I'm still not good at it, so I have to practice more. mutual encouragement!

Guess you like

Origin blog.csdn.net/qq_41128526/article/details/125316278