我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

如何根据时间显示记录[关闭]

there is many records stored in my table in time colomn, i want to display the records according to time, like: first records should be 12:00 AM Second one of after 12:00 AM and so on.

table name: appointment
colomn name: time time format: 12:00 AM

the records should be from 12:00 AM to 12:00 PM

 select * from table_name order by time desc

Try sorting the data by time:

SELECT *
FROM MyTable
--where mydate =..???
ORDER BY mydate 

近期文章

  • PHP / Javascript:传递简单字符串,定义要包含的部分
  • 哪个if语句更有效? [关闭]
  • php登录表单传递vars
  • 我可以获得一些电子邮件帮助吗?
  • 为什么我不能使用mysql_num_rows? [重复]
  • JSON解码为数组
  • 错误:使用PDO的未定义变量
  • 访问类的属性
  • 为什么count(false)在PHP中返回1? [重复]
  • Php将字符串转换为正确的类型
  • 通过命令行将日期传递给PHP
  • php bool函数返回字符串而不是bool
  • 从post发送多个参数到php函数?
  • PHP卷曲空结果[关闭]
  • 从XAMPP服务器MySQL数据库创建图表[关闭]
  • 将PHP代码转换为C(sha1算法)
  • 简单的通讯行动[已结束]
  • PHP填充表单里面的循环从SQL表[关闭]
  • 在mysqli查询中使用会话用户名为“WHERE”[关闭]
  • 如何用逗号来解析desc mysql的价格

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华