Dino Geek, try to help you

How to use string functions in MariaDB?


MariaDB provides various functions that allow us to manipulate strings of characters. Here’s how to use some of these string functions:

1. LENGTH: This function returns the length of the string. For example:

\`\`\` SELECT LENGTH; \`\`\`

1. CONCAT: This function is used to concatenate two or more strings together. For example:

\`\`\` SELECT CONCAT; \`\`\`

1. SUBSTRING: This function is used to extract a substring from a string. ‘start’ is the position to start from and ‘length’ is the number of characters to retrieve. For example:

\`\`\` SELECT SUBSTRING; \`\`\`

1. REPLACE: This function is used to replace all occurrences of a substring ‘from_str’ with the string ‘to_str’. For example:

\`\`\` SELECT REPLACE; \`\`\`

1. UPPER and LOWER: These functions change the case of the string to upper case and lower case respectively. For example:

\`\`\` SELECT UPPER; SELECT LOWER; \`\`\`

1. TRIM: This function removes leading and trailing spaces from a string. For example:

\`\`\` SELECT TRIM; \`\`\`

You can execute these queries using a MariaDB client by connecting to a MariaDB server. If the MariaDB server is running locally, for example, you could use the `mysql` command line client.


Simply generate articles to optimize your SEO
Simply generate articles to optimize your SEO





DinoGeek offers simple articles on complex technologies

Would you like to be quoted in this article? It's very simple, contact us at dino@eiki.fr

CSS | NodeJS | DNS | DMARC | MAPI | NNTP | htaccess | PHP | HTTPS | Drupal | WEB3 | LLM | Wordpress | TLD | Domain name | IMAP | TCP | NFT | MariaDB | FTP | Zigbee | NMAP | SNMP | SEO | E-Mail | LXC | HTTP | MangoDB | SFTP | RAG | SSH | HTML | ChatGPT API | OSPF | JavaScript | Docker | OpenVZ | ChatGPT | VPS | ZIMBRA | SPF | UDP | Joomla | IPV6 | BGP | Django | Reactjs | DKIM | VMWare | RSYNC | Python | TFTP | Webdav | FAAS | Apache | IPV4 | LDAP | POP3 | SMTP

| Whispers of love (API) | Déclaration d'Amour |






Legal Notice / General Conditions of Use