Yahoo Poland Wyszukiwanie w Internecie

Search results

  1. 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)

  2. 18 sty 2014 · Simple, use MySQL's IF() function, which takes the form: if(expression, value_if_true, value_if_false) INSERT INTO TABLE (COLUMN) VALUES (IF(my_value < 0, 0, my_value)

  3. I am importing "LOAD DATA INFILE" a comma delimited text file into my MySQL Database. I tried using FLOAT and DECIMAL but neither work. The problem I am currently having is the program that outputs, or makes, the delimited text file outputs negative numbers in the following format:

  4. www.mysqltutorial.org › mysql-administration › mysql-data-directoryMySQL Data Directory - MySQL Tutorial

    To check the current location of the data directory using the mysql program, you can follow these steps: First, connect to the MySQL Server: mysql -u root -p. Second, display the value of the @@datadir system variable: SELECT @ @datadir; Code language: CSS (css) Here’s the output on Linux and macOS: +-----------------+. | @@datadir |.

  5. 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.

  6. 2 sie 2016 · You can find the current log file location within MYSQL by inspecting the global variables. For example, the below will show if your general_log is on or off and the general_log_file location on your system.

  7. MySQL uses the p value to determine whether to use FLOAT or DOUBLE for the resulting data type. If p is from 0 to 24, the data type becomes FLOAT(). If p is from 25 to 53, the data type becomes DOUBLE()

  1. Ludzie szukają również