![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Q: How can I make a database be strict about accepting valid data? A: In the config file for the server, find and edit to include 'STRICT_TRANS_TABLES' or 'STRICT_ALL_TABLES': # Set the SQL mode to strict sql-mode="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_E NGINE_SUBSTITUTION" This will be the default mode for all new connections. Q: How can I override these settings on a per-session (per-client, per connection) basis? A: Issue this statement from the client: SET @@sql-mode=[Whatever wanted, but don't include STRICT_x_TABLES] Q: How can the database server administrator prevent the setting of this variable by any client/user? A: ???? -- Remove INVALID from e-mail address. Brian Smither Smither Consulting |
![]() |
| Thread Tools | |
| Display Modes | |
| |