Home > Net >  What's the problem, in the SQl statement in the SQl run no problem, but it is in the VS prompt
What's the problem, in the SQl statement in the SQl run no problem, but it is in the VS prompt

Time:09-15

CodePudding user response:

Error message is very important for the programmer debugging code,

Your program is the exception thrown FormatException, that is to say, when your program is call the Format method is wrong, not to run the SQL that step,

Development tools for code to do the preliminary examination, suggest you notice VS tip your green underlined part of the SQL statement,

CodePudding user response:

I suspect that you are using is Chinese input method curly braces

CodePudding user response:

refer to hand on the keyboard to knock on the second floor is very light response:
I wonder if you use Chinese input method called curly brackets

I think so, too,

CodePudding user response:

refer to hand on the keyboard to knock on the second floor is very light response:
I wonder if you use Chinese input method called curly brackets

I think right

CodePudding user response:

Find the problem, remove the parameter space on both sides of the bracket

CodePudding user response:

Braces {} use English characters
  •  Tags:  
  • C#
  • Related