Summary of common basic problems in sql (start from small things, don't make such mistakes)

1. Regarding the use of the intercepted string substr, note: this is different from the use of substring in java, as follows, here you need to pay attention to the meaning of the third parameter, which is the number of bits to be intercepted, not the position;

substr (string to be intercepted, start position to intercept, number of bits to intercept);

For example: substr('1234',1,3)='123'; substr('123456789',3,4)='3456'; as shown in the figure:

【updating】

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324841967&siteId=291194637