Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

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,c++Á¬½Ómysql ÕÒ²»µ½Í·²¿Îļþ£¨ÐÂÊÖ£©

±àÒëÆ÷£ºC-Free4
mysql µ¥¶À°²×°µÄ£¬ÏÖÔÚΪapache+php+mysql¿ÉÒÔʹÓá£
×î½üÔÚÁ·Ï°c£¬c++£»ÏëÓÃc£¬c++Á¬½ÓÏÂÎÒµÄmysql£¬ºÃ¶àµØ·½¶à˵mysql.hÕÒ²»µ½¡£¶øÇÒÎÒmysqlûÓÐËùνµÄincludeÎļþ¼Ð°¡¡£
Íü¸ßÊÖÖ¸µãÒ»¶ ......

MySqlÎÊÌâ

MySqlÖвåÈ뵱ǰʱ¼äµÄ¸ÃÔõôд°¡£¿
now()

SQL code:

sqlÀïÊÇ£º
getdate()

ÒýÓÃ
now()


ѧϰ

SQL code:
select now();

SQL code:
TODAY()
?

SQL code:
select now();
/* ......

mysql°²×°ÎÊÌâ unpacking of archive failed on¡£¡£

linuxϵͳ Ô­À´×Ô´ømysqlÒѾ­Ð¶ÔØ ÐÂװа汾 °²×°Ê±Ìáʾ unpacking of  archive  failed on file usr/bin/ replace 4acebledle4d:cpio :read ÇëÎÊÊÇʲôÎÊÌâ

ÒýÓÃ
ÎļþÊÇÖ»¶ÁµÄ ¸ü¸ÄϸÃĿ¼ȨÏÞΪ ......

MYSQL°²×°Ê§°Ü

ÎÒÒÔÇ°°²×°ÁËÒ»´Î£¬ºóÀ´Ð¶ÔØÁË£¬ÏÖÔÚÔÙ°²×°µÄʱºò£¬Ìáʾ´íÎó£º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µÄ¹Ù·½Îĵµ¡£ MySQL¹Ù·½Îĵµ http://dev.mysql.com/doc/refman/5.1/zh/index.html

¾ÍÕÒÒ»±¾ºÜ»ù´ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ