我想把表A变成表B,就是把字段3 根据字段1求平均数 怎么写SQL语句啊
求高手帮忙
-------------------------------
表A
字段1 字段2 字段3
A A1 150
A A2 150
A A3 150
B & ......
call表字段:
id time cost period
time 是打电话的开始时间,日期格式精确到豪秒,cost 是打电话的费用,
period 是打电话的时长,单位是秒;
现在要对这个表按日进行统计,即统计表sta中time 字段是精确到天, cost是一天内的电话的费用,period字段是6秒一个间隔段数量的总合
sta ......
PHP code:
<?php
/*
* Created on 2010-3-3
*
* To change the template for this generated file go to
* Window - Preferences - PHPeclipse - PHP - Code Templates
*/
$mysqli=mysqli_connect("localhost","root","x-d","news");
$sql = "SELECT * fr ......
<table width=500 border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#add3ef">
<?php
$sql="select *from message ";
$result=mysql_query($sql);
while($row=mysql_fetch_arra ......
以下是HTML页~
HTML code:
<form action="insert.php" method="post" name="form1" id="form1">
<table width="250" border="1">
<tr>
<td>编号:</td>
<td><input type="text" name= ......
刚毕业的时候做的零担货运,发展还不错,先被派到山东淄博做经理助理,后来派到东营,做东营货栈主管,但是因为自己年轻,没经验,再加上我性格上确实不属于那种很外向,很会说的人能上的了酒桌谈生意的人,所以。。。简单点说,得罪了在东营称王称霸的黑龙江黑社会,货栈陪进去3,4万,公司老总也对我失去了信任。从这件事 ......