SETvar_name=valueenablesyoutoassignvaluestovariablesthataffecttheoperationoftheserverorclients.ManysystemvariablesaredynamicandcanbechangedatruntimebyusingtheSETstatement.SETvar_name=value使您能夠?yàn)橛绊懛?wù)器或客戶端操作的變量賦值。許多系統(tǒng)變量是動(dòng)態(tài)的,可以使用SET語(yǔ)句在運(yùn)行時(shí)進(jìn)行更改那么set設(shè)置的系統(tǒng)變量在mysql運(yùn)行期間一直生效么?似乎生效期間是thecurrentsession,那么session是如何定義的?(官方手冊(cè)18.2.1MySQLShellSessions中沒找到存續(xù)期間的定義)只有重啟mysql之后才會(huì)被my.ini中的設(shè)置覆蓋么?
mysql set 關(guān)鍵字的作用范圍。
慕虎7371278
2019-05-13 09:42:36