Yahoo Poland Wyszukiwanie w Internecie

Search results

  1. You can use 'sign' with a decode. Sign will return -1 for any negative, 0 for 0, and 1 for any positive: select decode (sign (money_return), -1, abs (money_return), 1, money_return*10, money_return) from cash_t; edited Oct 7, 2019 at 14:04.

  2. 26 kwi 2016 · Simply use SIGN() in mysql It returns 1 as a positive value and -1 is a negative value. Example. SELECT SIGN(500); -- (Output is 1) SELECT SIGN(2500); -- (Output is 1) SELECT SIGN(-999); -- (Output is -1) SELECT SIGN(-5); -- (Output is -1)

  3. 18 mar 2024 · In this tutorial, we’ll see how to find out where MySQL stores its database files on Linux, and how to change the location if needed. Also, we ran this code on Ubuntu 20.04.3 with MySQL version 8.0 and root permission to execute the commands.

  4. 3.1 MySQL Shell Commands. MySQL Shell provides commands which enable you to modify the execution environment of the code editor, for example to configure the active programming language or a MySQL Server connection. The following table lists the commands that are available regardless of the currently selected language.

  5. 6 lip 2024 · In this tutorial, you will learn how to work with MySQL on Linux. Start from installation, configuration, perform CRUD operations, and much more.

  6. 8 sie 2017 · You can use the following command to locate MySQL datadir: grep datadir /etc/my.cnf. datadir=/var/lib/mysql. Or. grep -r datadir /etc/mysql/ Sample outputs: /etc/mysql/mariadb.conf.d/50-server.cnf:datadir = /var/lib/mysql. Another command that will display datadir: ps -eo cmd,args | grep mysql. Sample outputs:

  7. 19 paź 2018 · In MySQL, the SIGN() function returns the sign of a number. That is, it indicates whether or not the value is a positive number, a negative number, or zero. You provide the value as an argument when calling the function.

  1. Ludzie szukają również