Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"/" in the Database column name

Tags:

database

I have database with a column name "State/Province". All the queries and data transfers work properly. But in the "SelectedValue" property of the dropdownlist control, bind expressions throws an error.

When I edit the column name by removing the slash sign, it works well.

So using slash in the column name is not a proper way of naming?

like image 392
Arjun Babu Avatar asked May 17 '26 04:05

Arjun Babu


1 Answers

Basically using anything different than:

  • Alphabets
  • Numbers (not at start of the column name)
  • Underscore (_)

is not recommended as it is not a good way to name fields and some datasources might throw errors on other characters.

like image 181
Alex Avatar answered May 22 '26 17:05

Alex



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!