Jump to content

gassaz

Members
  • Posts

    61
  • Joined

  • Last visited

    Never

Everything posted by gassaz

  1. I think it would be done with a php script or some programming language. The mean idea is select row by row on the message table and using the string methods of the programming language to separate the dates and then insert into the new table.
  2. For example: Dates Table Id_dates INT Id_message INT start_date DATE end_date DATE
  3. If you can change the DB structure add a table to store the dates of the messages...
  4. gassaz

    Replace into

    Or you can use: INSERT INTO ....... VALUES .... ON DUPLICATE KEY UPDATE ....
  5. Maybe you can use triggers and stored procedures to emulate a data link.... i know a crazy idea
  6. gassaz

    SQL Query

    Reading a bit i found an example similar to your request.. INSERT INTO `day` (`id`, `class`) VALUE (SELECT `id`, `class`='S' FROM `trades2` WHERE `type1` = 'b' AND `price`<=`price1`)
  7. Try changing projp.project_phase_order by MAX(projp.project_phase_order)
  8. You shlould check some variable values of the server, variables like key buffer, sort buffer size. If you database type is InnoDb check variables like buffer pool size. Some times you can improve mysql server increasing this variables.
  9. Use LIKE... example: If 'something' exist into the table with accent or with out accent, the select will show the records.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.