MySQL的日志系统包含:general query log、slow query log、error log(记录MySQL Server启动时、运行中、停止时的错误信息)、binary log(记录…
同时修改表多个字段属性的方法
ALTER TABLE `dev_order_production_schedules` modify column `current_progress_id` int default null,
modify column `batch_num` varchar(255) default null
同时修改表多个字段属性和名称的方法
ALTER TABLE `payment_request_orders` change `payment_request_order_id` ...
1.ID属性不要以数字开头,数字开头的ID在 Mozilla/Firefox 浏览器中不起作用。
2.类名的第一个字符不能使用数字!它无法在 Mozilla 或 Firefox 中起作用。
原文链接:https://blog.csdn.net/living_ren/article/details/80335186
本站声明:网站内容来源于网络,如有侵权,请联系我们,我们将及时处理。
1.索引优化之选择合适的列进行索引: 1).在where从句、order by从句、group by从句、on从句中出现的列 2).索引字段越小越好 3).离散度大的列放在联合索引的前面,如:
SELECT * from payment where customer_id=584 and staff_id=2;
是index(customer_id,staff_id)好?还是index(staff_id,customer_id)...
1.通过ID或者其他元素找到要处理的HTML对象:(举例通过ID)
var obj=document.getElementById('id');
2.操作此对象
添加属性:obj.setAttribute('attr_name','attr_value');
获取属性值:obj.getAttribute('attr_name');
删除属性:obj.removeAttribute('attr_name');
原文链接:https://bl...
1.数据库设计添加字段父级分类ID号parent_id和path路径,0代表为根分类(一级分类),一个‘_’代表二级分类:
2.添加分类模板修改为选择父级分类名: 模板中添加parent_id提交,如下:
<tr>
<th width="120"><i class="require-red">*</i>上级分类:</th>
...
1.评论框及评论内容展示模板如下:
<!-- 发表评论 -->
<div id="comment">
<h3><strong>发表评论:</strong></h3>
<p><span>标题:</span>
<input type="text" name="" id="comm_title" class="text"></p>
&l...
1.博文点赞功能添加:
<span class="like">
<a href="javascript:void(0)" id="ding" data-action="ding" data-id="{$artInfo.art_id}" title="我赞" class="favorite done"><i class="fa fa-thumbs-up"></i>赞 <i class="count">{$artInfo.click_num}</i></a>
<...
1.后台删除数据时一般不会真正的删除,而是将数据库中的某个字段更改标记为删除状态,实现逻辑删除;
<a class="link-recycle" art_id="{$val.art_id}" href="javascript:void(0)">删除</a>
<script> $('.link-recycle').click(function(){ var bool=window.confirm("您确定移除此条博文...
1.建立一个脚本one.php
<?php //开启session使用函数session_start(),之前不能有任何输出:开启时,服务器向客户端的cookie文件中写入了session id, &nbs...