Recently, the new MySQL instance imported SQL data, found more than the old MySQL 100+ table, the final discovery is the MySQL table name case, the simple problem is delayed for a long time, in this record, in order to prevent the same mistake again;1, Linux under the installation of MySQL is the default: distinguish the case of the table name, do not distinguish between the case of the column name;2, with the root account login, in the/ETC/MY.CNF [mysqld] After adding add Lower_case_table_names
There was a problem querying this comment after annotating the table:Add notes to a tableComment on table emp is ' employee table ';Query commentsSelect COMMENTS from user_tab_comments where table_name= ' emp ';Results:Row not selectedChange statement:Select COMMENTS from user_tab_comments where table_name= ' EMP ';Query the results.Reason:Creating a table with Create, the table name defaults to uppercase in the dictionary table, so look up the uppercase table names when querying with the dictio
container--lower_case_table_names=1 definition database does not differentiate between table name and caseUser's steps:
Pull MySQL ImageDocker pull MySQL
Running MySQL
Docker run--net=host--restart=always--privileged=true-v/usr/docker_dat/mysql/data:/var/lib/mysql--name MySQL-P 3,306:3,306-E Mysql_root_password=root-v/etc/localtime:/etc/localtime:ro-D MySQL--lower_case_table_names=13. Parameter description--restart=always Follow Docker Boot--privileged=true container root use
/table/column with all lowercase letters + underscores, without using any uppercase letters.If you use the InnoDB engine, apply lower_case_tables_name=1 on any platform to force the name to lowercase. Please note that before restarting Mysqld, the original database name and the table name must all be converted to lowercase before lower_case_tables_name is set to 1 in the UNIX system.This article is from the "Share Your Knowledge" blog, so be sure to keep this source http://skypegnu1.blog.51cto.c
Label:highlightbool value Capital got else sorry preexit RMB capital function: Integer no more than 13 bits. Public Function RMB Capital (A) As String Dim aa As String Dim bb As String Dim cc As String Dim dd As Byte Dim ee as B Oolean Dim ff As Byte Dim i As Integer Dim qq As String on Error GoTo ch_err If A >= 0 Then AA = Int
((A + 0.005) * 100) Else AA =-int ((A + 0.005) * +) End If dd = Len (aa) for i = DD to 1 Step-1 QQ = Mid (aa , Dd-i + 1, 1) BB = Mid ("0 One and three Woolu seven
Original: Java converts Chinese into English and supports first letter capitalizationSource code: Http://www.zuidaima.com/share/1563120428403712.htmI've seen bull cows publish this code before, but the one that he wrote is purely conversion, and does not satisfy too much demand. Today is the time to work with this problem, the need to capitalize the initial letter. I hope you can use it later.This is the case diagram.This is the result diagram. Copyright NOTICE: This article for Bo Master origin
function tocapital (num) {var stroutput= ""; var strunit= ' Qian Bai hundred million thousand thousand to pick up the angle of the yuan '; Num+ = "00"; //decimal Positionvar intpos = Num.indexof ('. ')); //greater than 0, that is, there are decimals if(intpos >= 0) { //intercept two digits after the decimal point.num = num.substring (0, Intpos) + num.substr (intpos + 1, 2); } //get the strunit corresponding to NumStrunit = Strunit.substr (Strunit.length-num.length); for
package, or public ), so the function name is even. If you modify the 10th line of Main.go, use the non-guidedout of the function even.odd:Fmt. Printf ("is%d even?" %v\n ", I, even.odd (i))Because of the use of private functions, a compilation error is obtained:Main.go:10:cannot refer to unexported name even.oddIn summary: The name of the public function begins with a capital letter, and the name of the private function begins with a lowercase letter.For structural bodiesType S struct { T1
Sometimes we need to use randomly generated username and password in the application, which can greatly improve the security of the application, generate a random user name and password in PHP can use the Mt_rand function or the RAND function, the RAND function in the verification code of the application of more, The Mt_rand function is usually required for random codes with growing characters.
Using PHP to generate random numbers can be applied in many places, such as random passwords that can
RMB amount to Capitalization program PHP version
Class ext_num2cny{
Static $basical = Array (0=> "0", "one", "II", "three", "Restaurant", "WU", "Lu", "Qi", "ba", "JIU");
Static $advanced =array (1=> "Pick", "Bai", "Qian");
public static function Parsenumber ($number) {
$number =trim ($number);
if ($number >999999999999) return "The number is too large to handle. I'm sorry! ";
if ($number ==0) return "0";
i
PHP implements the method of converting the first letter of the string to uppercase, the string uppercase
The example in this paper describes how to convert the first letter of a string into uppercase. Share to everyone for your reference. The specific analysis is as follows:
In PHP, the first letter in a string can be converted to uppercase by the Ucfirst function, while the Ucwords function converts the first letter of each word in a string to uppercase
The output results are as follows:
PHP
skipCase 1:Case 2:Case 3:if (ary[i-1]! = ' 0 ') {Zero = "0"}; If it is not divisible by 4, then the judgment code is executed: if its next digit (which is the previous character for the current string, because it was previously reversed) is also 0, then skip, otherwise read as "0"Break}Newary = zero + newary;zero = ";}else {//If not "0"Newary = This.ary0[parseint (Ary[i]) + this.ary1[i% 4] + newary; The expected character is converted into a numeric type, and as an index number of the array ary
insert it in front of the STR string if(n = = ' 0 ') sum = 0; } if(len-i-1 >= 0) {//within the range of numbers if(K1! = 3) {//Add small units if(Bn! = 0) {str=Dw1[k1].concat (str); } K1++; } Else{//do not add small units, increase unitsK1 = 0; vartemp = Str.charat (0); if(temp = = "Million" | | temp = = "million")//If there is no number in front of the large unitstr = STR.SUBSTR (1, str.length-1); STR=Dw2[k2].concat (str); Sum= 0; } } if(K1 = = 3)//small u
; Body>HTML>Enter ASD and the input box will be automatically converted to asd! Remove cursor Eject ASDthe value of the Text-transform is -none: Default, no conversion occurs, capitalize: The first letter of each word is capitalized; uppercase: uppercase conversion; lowercase: lowercase conversionthe difference between the two : When the method is used, it will give the user a sense of conversion; Method two interface is shown in uppercase, but in essence CSS style, the background needs to be
When requesting JSON data, passing the past string type to JSON data often has a case where the first letter is capitalized, such as "Loginaccount": "02:00:00:62:73:74", "Logintype": "1", "Mac": " 02:00:00:62:73:74 "and so on. When converting to JSON, Fastjson's source code will do an operation, Fastjson internal bean conversion will be used to com.alibaba.fastjson.util.TypeUtils, when the class load will read the environment variables Fastjson.compatiblewithjavabean.Workaround:1, directly confi
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.