For example, I use this
select * from tab1;
every 5 minutes.
Is there a way to set up an alias pso that I can just do
p
and this request is fulfilled?
This calls view , but in your case it is not much shorter: create view p as selecT * From tab1;you would use it like:select * from p
create view p as selecT * From tab1;
select * from p
However, it becomes more interesting with more complex queries.
You can create a stored procedure and then call it as CALL p.
CALL p
http://dev.mysql.com/doc/refman/5.1/en/stored-routines.html
. , :
CALL p;
:
CREATE PROCEDURE p() SELECT * FROM tab1;
call p
Source: https://habr.com/ru/post/1756698/More articles:Enum typed properties in Entity Framework objects? - enumsΠΏΡΠΎΠ±Π»Π΅ΠΌΠ° cakephp css ΠΈ ΠΈΠ·ΠΎΠ±ΡΠ°ΠΆΠ΅Π½ΠΈΠΉ Π½Π° localhost - cakephpHow to find out if the .pem file is correct or not. - php32x32 Multiply and add optimizations - optimizationEntity Framework 4 POCO - Lazy + Eager Download - entity-frameworkHow to compile scala sources through maven integration in intellij idea? - scalaHashMap implementation issue - javaCustomize braces with StyleCop - stylecopWhy are there some missing links when starting my application? - visual-studioΠΠ°ΠΊΠΎΠ² Π½Π°ΠΈΠ±ΠΎΠ»Π΅Π΅ ΡΡΡΠ΅ΠΊΡΠΈΠ²Π½ΡΠΉ ΡΠΏΠΎΡΠΎΠ± Ρ ΡΠ°Π½Π΅Π½ΠΈΡ ΠΈΠ·ΠΎΠ±ΡΠ°ΠΆΠ΅Π½ΠΈΠΉ ΠΏΡΠΎΡΠΈΠ»Ρ Π΄Π»Ρ ΡΠ°ΠΉΡΠ° ΡΠΎΡΠΈΠ°Π»ΡΠ½ΠΎΠΉ ΡΠ΅ΡΠΈ? - phpAll Articles