求一sql语句!~~急,求大神帮忙

洋洋2018 2015-12-16 08:35:25

DROP TABLE IF EXISTS `rr_notification_info`;
CREATE TABLE `rr_notification_info` (
`id` bigint(20) NOT NULL,
`member_id` int(10) DEFAULT NULL,
`message` varchar(300) DEFAULT NULL,
`send_date` datetime DEFAULT NULL,
`type` int(3) DEFAULT NULL,
`opent_status` int(2) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;


要的结果:

...全文
186 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
文修 2015-12-21
  • 打赏
  • 举报
回复
楼主你好 我不知道你这个是什么页面,其实程序里面可以用变量和控件来获取值,不需要完全用SQL语句,因为SQL语句太多,执行效率太低,以下仅供参考 SELECT CONCAT(region_name,store_name) FROM Geography 订单消息 select send_date,concat(select member_name from member where member_id=member.member_id,"下单"),concat("订单号",id) from rr_notification_info 活动消息 select message from rr_notification_info 系统消息 select convert(varchar(100), getdate(), 5),message from rr_notification_info
ayzen1988 2015-12-21
  • 打赏
  • 举报
回复

select type,message,send_date from rr_notification_info group by type;

56,678

社区成员

发帖
与我相关
我的任务
社区描述
MySQL相关内容讨论专区
社区管理员
  • MySQL
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧