MYSQLÐÂÊÖÎÊÌ⣬
SQL code:
--½¨Á¢ÁÙʱ±í£¬ÎÊÌâ1
create TEMPORARY table tmp_table(s1 int,s2 varchar(30))
--select * from tmp_table
--½¨Á¢ÁÙʱ±äÁ¿£¬ÎÊÌâ2
set @v=0;
--Ñ»·Ö´ÐвåÈë²Ù×÷£¬ÎÊÌâ3
while @v<20 do
insert into tmp_table values(@v,concat('²âÊÔÊý¾Ý:', @v))
set @v=@v+1
end while
ÎÊÌâ1£ºMYSQL´´½¨ÁÙʱ±í£¬ÓÃTEMPORARY £¬ÁÙʱ±íÖ»ÓÐÔÚÁ¬½Ó¶Ï¿ªºó²ÅÇå³ý£¬ÔÚMSSQLÀïÊÇ#tablename,ÔÚMSSQLÀﻹÓиö
create @tablename table(),Õâ¸öÁÙʱ±íÖ»ÓÐÔÚÖ´ÐÐÓï¾äµÄʱºò²Å´´½¨£¬Ö´ÐÐÍêÁ¢¿ÌÇå³ýµÄ¡£ÔÚMYSQLÀïÔõôʵÏÖ£¿£¿
ÎÊÌâ2£º´´½¨ÁÙʱ±äÁ¿
declare @a int ´íÎ󣬴ËΪMSSQLÓï·¨¡£
set @a=5 ÕýÈ·£¬ÕâÑù¸Ð¾õ@a¶¼²»ÐèÒª¶¨ÒåÁË£¬Ö±½Ó¸³Öµ°¡£¿
MYSQLÀïÃæÔõô¶¨ÒåÁÙʱ±äÁ¿£¿£¿
ÎÊÌâ3£ºÉÏÃæµÄ´úÂ븴ÖƵ½MYSQL-FRONTÀïÖ´ÐУ¬²»Í¨¹ý¡£ÎÒµÄÄ¿µÄ¾ÍÊÇÑ»·ÍùÁÙʱ±íÀï²åÈë20Ìõ¼Ç¼¡£Ó¦¸ÃÈçºÎÐ޸ģ¿£¿
ÐÂÊÖ£¬¶ÔMSSQLÊìϤ£¬¸Õ¿ªÊ¼½Ó´¥MYSQL£¬»¹Íû¸÷λGGJJDDMM°ï棬ллÔÚÏÈ¡£
²¹³ä£º
1:²»Ïëͨ¹ý´æ´¢¹ýÀ´À´×ö¡£¡£Ö±½Óµ½MYSQL-FRONTÀïÃæдÃüÁîÍê³É¡£
2:MYSQL°æ±¾5.0
3£ºÔÚÏߵȡ£
4:ɳ·¢×Ô¼º×ø¡£
SQL code:
delimiter //
--½¨Á¢ÁÙʱ±í£¬ÎÊÌâ1
create TEMPORARY table tmp_table(s1 int,s2 varchar(30));
--select * from tmp_table
--½¨Á¢ÁÙʱ±äÁ¿£¬ÎÊÌâ2
set @v=0;
--Ñ»·Ö´ÐвåÈë²Ù×÷£¬ÎÊÌâ3
while @v<20
Ïà¹ØÎÊ´ð£º
±àÒëÆ÷£ºC-Free4
mysql µ¥¶À°²×°µÄ£¬ÏÖÔÚΪapache+php+mysql¿ÉÒÔʹÓá£
×î½üÔÚÁ·Ï°c£¬c++£»ÏëÓÃc£¬c++Á¬½ÓÏÂÎÒµÄmysql£¬ºÃ¶àµØ·½¶à˵mysql.hÕÒ²»µ½¡£¶øÇÒÎÒmysqlûÓÐËùνµÄincludeÎļþ¼Ð°¡¡£
Íü¸ßÊÖÖ¸µãÒ»¶ ......
MySqlÖвåÈ뵱ǰʱ¼äµÄ¸ÃÔõôд°¡£¿
now()
SQL code:
sqlÀïÊÇ£º
getdate()
ÒýÓÃ
now()
ѧϰ
SQL code:
select now();
SQL code:
TODAY()
?
SQL code:
select now();
/* ......
linuxϵͳ ÔÀ´×Ô´ømysqlÒѾжÔØ ÐÂװа汾 °²×°Ê±Ìáʾ unpacking of archive failed on file usr/bin/ replace 4acebledle4d:cpio :read ÇëÎÊÊÇʲôÎÊÌâ
ÒýÓÃ
ÎļþÊÇÖ»¶ÁµÄ ¸ü¸ÄϸÃĿ¼ȨÏÞΪ ......
ÎÒÒÔÇ°°²×°ÁËÒ»´Î£¬ºóÀ´Ð¶ÔØÁË£¬ÏÖÔÚÔÙ°²×°µÄʱºò£¬Ìáʾ´íÎó£ºError 1305.Error reading from file C:DOCUME~1\LOCALS~1\Temp\mysql_server.msi.Verify that the file exists and that you can access it.
¿ ......
MySQLÈëÃÅ
¿ÉÒÔÏÈ¿´Ê²Ã´Êé¼®°¡£¿
ÏȶÁÈý±é¡¶Êý¾Ý¿âϵͳ¸ÅÂÛ¡·,ÕÆÎÕÊý¾Ý¿âµÄ»ù´¡ÀíÂÛ¡£
È»ºóÔÙ´Ö¿´Ò»±éMYSQLµÄ¹Ù·½Îĵµ¡£ MySQL¹Ù·½Îĵµ http://dev.mysql.com/doc/refman/5.1/zh/index.html
¾ÍÕÒÒ»±¾ºÜ»ù´ ......