MYSQL轉換JSON

來源:互聯網
上載者:User

標籤:

http://51strive.com/

 

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>線上 Mysql 轉換 json串</title>
</head>
<body>
<H1><div style="text-align:center;">線上 Mysql 轉換 json串</div></H1>
<h2><font color="red">2016.5.16 修複xmpphp-0.1rc2-r77支援php7</font></h2>
<a href="https://github.com/onefishum/xmpphp-for-php7" target="_blank">xmpphp-0.1rc2-r77 for php7</a><P>

Mysql 輸出格式:<br>

mysql> select * from demo_test;<br>
<pre>
+-----+--------------+------+------+------+
| c1 | c2 | c3 | c4 | c5 |
+-----+--------------+------+------+------+
| a11 | 123456789 | 10 | 1 | 0 |
| AA | HELLO, HELLO | 8 | 0 | 0 |
+-----+--------------+------+------+------+
</pre>
<P>
<H2><font color="red">註:拷貝表格部分</font><br></h2>
<div style="courier new">
<form name=‘msyql2json‘ action="" method="post" accept-charset="utf-8">
<input type="submit" name="submit" value="提交" onclick="checkValid()" >
<P>
<textarea id="strData" name=‘text‘ style="width:800px;height:320px;">
</textarea><br>
</div>
</form>
<p>
Json串:<p>
null<div style="display:none"> <a href="http://www.art-zys.com"></a></div>
<script>
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "//hm.baidu.com/hm.js?e8bbc4c2aa86f142f8c62acd306e2497";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>

<script language="javascript">
function checkValid()
{
var tex = document.getElementById("strData");

if(tex.value.length > 16384)
{
alert("輸入不超過16384個字元!已經超出"+Number(tex.value.length-16384));
return false;
}
return true;
}
</script>
</body>
</html>

MYSQL轉換JSON

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.