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

MYSQL ÈçºÎÐÞ¸ÄBLOBÀàÐ͵ÄÊý¾Ý?

ÈçÌâ Êý¾ÝÊÇBLOBÀàÐÍ Ôõô²ÅÄÜÐÞ¸ÄÆäÖеÄijЩֵ
BLOBÖдæÈëµÄÊÇʲôÄÚÈÝ£¿

¼ÙÉè×Ö¶ÎmemoΪblobÀàÐÍ£¬ÔÚ¸Ã×ֶεÄֵǰÃæÔö¼Ó×Ö·û´®'add--'
Ôò²Ù×÷Óï¾äÈçÏ£º

SQL code:
update tb_blog set memo=concat('add---',cast(memo as char)) where id=1;


BLOBÊý¾ÝÊÇһЩÓû§ÐÅÏ¢  
  
ÁíÍ⻹ÓÐ1¸öÎÊÌâ:
  select data from table where id='XXX'
  DATAµÄֵΪBLOBÀàÐÍ  
  select hex(data) from table where id='user1' µÃµ½user1µÄHEX DATAÖµ  
  ÎÒÏëÈÃidΪuser2µÄdataÖµ µÈÓÚ user1µÄDATAÖµ 
  ÈçºÎͨ¹ýת»»³ÉHEXµÄ·½Ê½À´ÐÞ¸ÄUSER2µÄÖµ?

ÔõÑù ת»»³ÉHEXÖµµ¼³ö È»ºó½øÐÐÊý¾ÝÖеÄij×Ö·û È»ºóÔÙµ¼Èë?

update table set data=hex(data) where ?

SQL code:
select data into @str from table where id='user1';
update table set data=@str where id='user2';


лл¥ÉϵĴó´ó

  ±à¼­²éѯµÃµ½µÄBLOBÖµ ¿ÉÒÔͨ¹ýʲô·½Ê½ÐÞ¸Ä? 
  16½øÖÆ »¹ÊÇÖ±½ÓÐÞ¸Ä?


ÒýÓÃ
ʹÓÃmysql_real_query¶ø²»ÊÇmysql_query£¬²¢ÇÒ¶þ½øÖÆÊý¾ÝÒª×öתÒå
ÓÐÁ½ÖÖ·½·¨£º
·½·¨Ò»
1¡¢Í¨¹ýmysql_real_escape_string°Ñ¶þ½øÖÆÊý¾ÝתÒå¡£
2¡¢¹¹ÔìsqlÓï¾ä£¬°ÑתÒåºóµÄ¶þ½øÖÆÊý¾Ýµ±³É×


Ïà¹ØÎÊ´ð£º

c,c++Á¬½Ómysql ÕÒ²»µ½Í·²¿Îļþ£¨ÐÂÊÖ£©

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

mysqlµÄÁ¬½Ó³¬Ê±Ê±¼äÔõôÉèÖà - VC/MFC / Êý¾Ý¿â

ÎÒÊÇÓÃmysql×Ô´øµÄC API
if(mysql_real_connect(&mysql,"125.0.0.108","root","root","home",3306,NULL,0))

AfxMessageBox("Êý¾Ý¿âÁ¬½Óʧ°Ü") ......

Winform+MySQL×öÏîÄ¿

Winform+MySQL×öÏîÄ¿£¬ÔÚ×¢ÖØÐÔÄܵÄÇé¿öÏ£¬ÎÒ¸ÃÈçºÎÈ¥Íê³ÉÕâÀàÐ͵ÄÏîÄ¿ÄØ£¡
Çë¸÷λ¸øÒÔÌáʾ¡£
ÄãÕâ¸ö·¶Î§Ì«¹ãÁË£¬ÎÒ˵2µãÖØÒªµÄ°É
1.WINFORM³ÌÐòÊǵ¥¶ÀÔËÐеÄCS³ÌÐò£¬ºÍBS²»Í¬£¬BSµÄѹÁ¦Ê¼ÖÕ¶¼ÔÚSERVERÉϵģ¬¶ÔC ......

MysqlÁ¬½Óoracle

ÐèÒªÔÚMySQLÀïÃæд¸ö´¢´æ¹ý³Ì,
·ÃÎÊoracleµÄÊý¾Ý.
Ä¿Ç°²»ÄÜ

oracle¿ÉÒԾͿÉÒÔÁ¬½Ómysql£¬Í¨¹ýodbc+dblinkÀ´Á¬½Ó

ûÓа취¡£Ä¿Ç°µÄMYSQLµÄ°æ±¾ÖÐÉв»Ö§³ÖÁ¬½Óµ½ÆäËüÊý¾Ý¿â£¬

ÕæͦÓÐÏë·¨µÄ Ä¿Ç°ÎÒû×ö¹ý ......

mysql µ¼ÖÂËÀ»ú

»·¾³£ºwin2003 apache2 resin3 php5 mysql5
mysql´íÎóÀï³öÏÖÕâ¸ö£¬·þÎñÆ÷Ö±½ÓËÀµ½ÄÇÀï¡£
InnoDB: The log sequence number in ibdata files does not match
InnoDB: the log sequence number in the ib_log ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ