+ Reply to Thread
Page 1 of 2
1 2 LastLast
Results 1 to 5 of 8

Thread: look at all this numbers in mysql!

  1. #1
    mita2412
    Guest

    look at all this numbers in mysql!


    i have a problem with mysql her. had a ms-access database before, but i need all data in mysql now because an access .mdb-file is not the best choice for a shop system.

    i found a nice tool (navicat) to export this whole .mdb to mysql without any accident.

    now i have this new field with the content of an item, which can be anything between 0.0012 and 900 and im not sure about the right datatype. its "decimal" at the moment (length 8, zerofill off, unsigned on, null allowed), but it "zerofills" the whole number now, so i get results like "0.50000" (0.5 is what i need).

    so whats the right datatype for this?
    More Information:
    1. shell> /usr/local/mysql/bin/mysqlslap --user=john --auto-generate-sql Benchmark Average number of seconds to run all queries: 0
    2. This is because MySQL is able to estimate number of … way
    3. After now running for 4-5 days the number of mysql processes associated with zabbix has settled down to a much more reasonable 17 or so
    4. 5 posts - 3 authors - Last post: May 12, 2009MySQL: Numbers Not In The List Tech Talk - Gadgets, Gizmos and Technology
    5. This is not specific to MySQL, it's generally applicable … ignore those for the sake of simplicity
    6. I'm no Joomla guru, today was the first time I've even looked at it, however it seems rather a broken and inefficient way to go about trying to get
    7. I downloaded my database for a friend to have a look at, what application would he use to read the database? The data base is a
    8. im building a photo site based around a mysql database and when any given photo is displayed im trying to display thumbnails of the previous and next photos

    More:


  2. #2
    Howassuts
    Guest


    Quote:








    i have a problem with mysql her. had a ms-access database before, but i need all data in mysql now because an access .mdb-file is not the best choice for a shop system.

    i found a nice tool (navicat) to export this whole .mdb to mysql without any accident.

    now i have this new field with the content of an item, which can be anything between 0.0012 and 900 and im not sure about the right datatype. its "decimal" at the moment (length 8, zerofill off, unsigned on, null allowed), but it "zerofills" the whole number now, so i get results like "0.50000" (0.5 is what i need).

    so whats the right datatype for this?



    go with a double,

    if the range can be anywhere from 0.0012 - 900, then







    datatype: FLOAT
    More Information:
    1. How to convert numbers from one base to another, using Delphi · Absolute Beginner Numbers · Angela Bradley PHP / MySQL Guide
    2. 38 posts - 7 authors - Last post: Nov 13, 2006I'm trying to do something different with MySQL
    3. Jaspersoft's summary interpreted these numbers to mean "More than three quarters of respondents said their use of MySQL would increase or stay the same
    4. For example, you might want to locate all numbers regardless of how many digits
    5. a MySQL cluster), but this is not an easy task and you should seek expert support, e
    6. The BETWEEN SQL operator looks for values contained within a certain range; the values tested can be numbers, text or dates
    7. Notice how the left side is padded with zero's, which makes the numbers look consistent, no matter what the "real" length is
    8. net/#aa064b58 look at the very bottom of the page it says "4 queries run"onlyican

  3. #3
    tols253
    Guest

    I'd keep it as decimal, or you could try float if you want. And why does it matter if it's 0.50000 or 0.5 they are equivalent.
    More Information:
    1. The resulting integer requires only a third of the original space and furthermore look-ups and indexing will be faster
    2. After looking around a bit I found a site that hosts PHP and MySQL apps
    3. If you use "möchten" as search string, MySQL will match every page, as & is a operator that will do crazy things if it's present in the search string
    4. Ask MySQL Database questions and get answers from our community of MySQL Database experts and professionals on BYTES
    5. I have a list (one column) of 2000 part numbers, of which about 1200 are distinct
    6. Help forum discussing administration, SQL syntax, and other MySQL-related topics
    7. Much like in programming languages, implicit casting is made to numbers when at least one of the arguments is a number
    8. key: the index that MySQL decided to use, from the possible_keys, to look up rows
    9. Where you expect a number, there must only be numbers in your SQL queries

  4. #4
    ledoanhieu278
    Guest


    Quote:








    I'd keep it as decimal, or you could try float if you want. And why does it matter if it's 0.50000 or 0.5 they are equivalent.



    because "0.50000 l" dosnt looks very professional on a shopping cart. is there some kind of string function to cut the last zeros?
    More Information:
    1. I've never used it, but it might be worth a look
    2. 1 post - 1 author - Last post: Nov 2, 2007Hey everyone, i have a Mysql database and Php setup on a linux server
    3. Form Tools is a form processor, storage and data access script written in PHP and MySQL, designed to work with any existing web form
    4. Visit Dev Shed to discuss How can I know the port number of Mysql
    5. Hello there, A friend called me today and was wondering what happens if the ID colomn of an MYSQL database, set to autoinc reaches the int limit
    6. MySQL said it brought in barely a fourth of that in 2007
    7. I can include any number of lines between paragraphs and MySQL stores them and redisplays within the form
    8. How can I know the port number of Mysql- MySQL Help
    9. If you were a bit lazy in your typing, and tried 'to look for the word 'love', as follows:

  5. #5
    thagar
    Guest


    Quote:








    because "0.50000 l" dosnt looks very professional on a shopping cart. is there some kind of string function to cut the last zeros?




    php Code:

    number_format ($number, 2);

    Which will give you 0.50 which looks better than 0.5
    More Information:
    1. With this information we look up the caller's phone number in the database and check for a match
    2. to return duplicate values if I insert distinct it removes all values Any idea what im missing from the code in order for the result to look like this
    3. The total number of sql commands handled by the MySQL server since startup or the last flush status command
    4. Find the number for your server by executing the mysql statement below
    5. For more background information you can also review A beginners look at Drizzle – Getting around
    6. CHAR(n) is fixed-length: MySQL allocates enough space for the specified number of characters
    7. Note: In case it wasn't clear from the above, Sun is clearly adding to MySQL's numbers with its "Infrastructure" component
    8. 0 and you don't plan to use any of the new features in MySQL 5

+ Reply to Thread
Page 1 of 2
1 2 LastLast

Similar Threads

  1. Is ther a way that I can ynchronize my MySQL on my PC to MySQL on my VPS
    Guys, I don't know if this is possible. Is there a way I can synchronize my PC's MySQL Database Server with my MySQL Database Server on my VPS? ...
  2. Excel / MySQL: How to use cells within excel as part of the mysql queries?
    I have an Excel 2007 document that is being used to generate reports from a central MySQL database. Lemmie just make this part clear - the...
  3. Server had mysql problems for few hours, now all I get are mysql ads :)
    My site was returning mysql error for few hours before I fixed it, but now all I get are mysql, make backup and get new hosting ads for 3 days...
  4. storing credit card numbers in mysql
    What is the laws to store a credit card into mysql? I mean is there any particular law on this? Is it legal as long as a condition is met?
  5. MySQL storing numbers
    Hi all, Not sure if this is possible so need to ask. I want to store numbers in a MySQL DB but in the format of 130.000 but the DB keeps...

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Automatic Translations (Powered by Powered by Google):
Afrikaans Albanian Arabic Belarusian Bulgarian Catalan Chinese Croatian Czech Danish Dutch English Estonian Filipino Finnish French Galician German Greek Hebrew Hindi Hungarian Icelandic Indonesian Irish Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Taiwanese Thai Turkish Ukrainian Vietnamese Welsh Yiddish