Как понять что стоит использовать MongoDB?Алгоритм очень прост:
Но работает немного неверноКогда код проверки определённых символов работает немного неверно, его нужно немного поправить определённым образом.
Что посоветуете?Нормально настроить веб-сервер.
INSERT INTO table1 (column1) SELECT col1 FROM table2DB::table('users')->insert([
['email' => 'taylor@example.com', 'votes' => 0],
['email' => 'dayle@example.com', 'votes' => 0]
]);
As of PHP 5.4 it is possible to array dereference the result of a function or method call directly. Before it was only possible using a temporary variable.
As of PHP 5.5 it is possible to array dereference an array literal.
SELECT t.* FROM table t
INNER JOIN (SELECT MIN(price) as price, name, attib1, attrib2 FROM table GROUP BY name, attib1, attrib2) tmp USING (price, name, attib1, attrib2)