当前位置: 首页 > news >正文

湖北做网站价格网络促销策略

湖北做网站价格,网络促销策略,做液压的公司网站,手机家装绘图软件timestamp到2038年,还有14年时间,一个系统如果能活到那一刻也是相当不错了。 这里先看一下个datetime的问题,下面的插入数据的时间戳是2024-03-06 21:20:50.839 INSERT INTO psi_io_balance ( id, as_id, bill_date, order_id, busi_type, direction, c…

timestamp到2038年,还有14年时间,一个系统如果能活到那一刻也是相当不错了。
这里先看一下个datetime的问题,下面的插入数据的时间戳是2024-03-06 21:20:50.839

INSERT INTO psi_io_balance ( id, as_id, bill_date, order_id, busi_type, direction, customer_id, ca_name, warehouse_id, stock_id, out_count, out_unit_cost, out_cost, final_count, final_unit_cost, final_cost, create_time, sn ) VALUES ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )
==> Parameters: f0ad530bcd234a57bf11282e7900c0fe(String), 7(Integer), 2024-01-09 00:00:00.0(Timestamp), XSCKD202401090001(String), 03(String), 02(String), 557511(Integer), 工作室(String), 43ebf6d3ed024d738b3c788aea27ec1f(String), 538(Integer), 1(BigDecimal), 0.01000000(BigDecimal), 0.01(BigDecimal), 9.00000000(BigDecimal), 0.01000000(BigDecimal), 0.09(BigDecimal), 2024-03-06 21:20:50.839(Timestamp), 0(Integer)

因为系统设计,你可以任意选择时间插入,插入后将实时进行成本核算,于是就发生了向后面的数据作用。下面的create_time 应该大于2024-03-06 21:20:50.839,但因为数据库字段为datetime,因此自身也被查询数来了,可以看到2024-03-06 21:20:51 这个字段到秒,后面的毫秒被丢失

SELECT id,as_id,bill_date,order_id,busi_type,direction,vendor_id,customer_id,ca_name,warehouse_id,stock_id,in_count,in_unit_cost,in_cost,out_count,out_unit_cost,out_cost,final_count,final_unit_cost,final_cost,residue_count,end_flag,update_time,create_time,version,sn FROM psi_io_balance WHERE (bill_date = ? AND create_time > ? AND as_id = ? AND stock_id = ? AND warehouse_id = ?)
==> Parameters: 2024-01-09 00:00:00.0(Timestamp), 2024-03-06 21:20:50.839(Timestamp), 7(Integer), 538(Integer), 43ebf6d3ed024d738b3c788aea27ec1f(String)
<==    Columns: id, as_id, bill_date, order_id, busi_type, direction, vendor_id, customer_id, ca_name, warehouse_id, stock_id, in_count, in_unit_cost, in_cost, out_count, out_unit_cost, out_cost, final_count, final_unit_cost, final_cost, residue_count, end_flag, update_time, create_time, version, sn
<==        Row: f0ad530bcd234a57bf11282e7900c0fe, 7, 2024-01-09, XSCKD202401090001, 03, 02, null, 557511, 工作室, 43ebf6d3ed024d738b3c788aea27ec1f, 538, 0E-8, 0E-8, 0.00, 1.00000000, 0.01000000, 0.01, 9.00000000, 0.01000000, 0.09, 0E-8, 0, null, 2024-03-06 21:20:51, null, 0

mysql 5.6.4 之前数据库是会把datetime类型秒后面的精度丢掉,5.6.4之后的版本是会保留这个精度
因此需要修改数据库表

ALTER TABLE `psi`.`psi_io_balance` 
MODIFY COLUMN `create_time` datetime(3) NOT NULL COMMENT '创建时间' AFTER `update_time`;

这样查看数据库,字段就到毫秒了。一般可能用不到,但特定场景时间精确起到了关键作用
1


文章转载自:
http://foreword.tgnr.cn
http://stealth.tgnr.cn
http://jumping.tgnr.cn
http://aminate.tgnr.cn
http://gemmy.tgnr.cn
http://kornberg.tgnr.cn
http://daredeviltry.tgnr.cn
http://nazarite.tgnr.cn
http://emphraxis.tgnr.cn
http://weevily.tgnr.cn
http://superhawk.tgnr.cn
http://carpal.tgnr.cn
http://kill.tgnr.cn
http://scandia.tgnr.cn
http://dispute.tgnr.cn
http://inspirer.tgnr.cn
http://nincompoop.tgnr.cn
http://platyrrhine.tgnr.cn
http://snakelike.tgnr.cn
http://squawkbox.tgnr.cn
http://microscale.tgnr.cn
http://dialyzer.tgnr.cn
http://pigeongram.tgnr.cn
http://nerts.tgnr.cn
http://nondividing.tgnr.cn
http://mouthwash.tgnr.cn
http://kennetic.tgnr.cn
http://woesome.tgnr.cn
http://terrifically.tgnr.cn
http://automanipulation.tgnr.cn
http://pda.tgnr.cn
http://asteroidal.tgnr.cn
http://boomlet.tgnr.cn
http://staphylococcus.tgnr.cn
http://murky.tgnr.cn
http://lasso.tgnr.cn
http://sensitise.tgnr.cn
http://waspie.tgnr.cn
http://shelleyesque.tgnr.cn
http://reenter.tgnr.cn
http://semantics.tgnr.cn
http://bosthoon.tgnr.cn
http://immolation.tgnr.cn
http://demoiselle.tgnr.cn
http://ignite.tgnr.cn
http://freer.tgnr.cn
http://shovelbill.tgnr.cn
http://surfbird.tgnr.cn
http://odograph.tgnr.cn
http://state.tgnr.cn
http://salwar.tgnr.cn
http://acre.tgnr.cn
http://vermiculite.tgnr.cn
http://bilander.tgnr.cn
http://gearchange.tgnr.cn
http://lankiness.tgnr.cn
http://proteinate.tgnr.cn
http://evocatory.tgnr.cn
http://czarina.tgnr.cn
http://truckle.tgnr.cn
http://menominee.tgnr.cn
http://glossina.tgnr.cn
http://adfreeze.tgnr.cn
http://nougatine.tgnr.cn
http://nonproficient.tgnr.cn
http://moorwort.tgnr.cn
http://friability.tgnr.cn
http://blesbok.tgnr.cn
http://concuss.tgnr.cn
http://spitball.tgnr.cn
http://jennet.tgnr.cn
http://trackable.tgnr.cn
http://tasman.tgnr.cn
http://ploughing.tgnr.cn
http://impressibility.tgnr.cn
http://aflame.tgnr.cn
http://wateriness.tgnr.cn
http://forewarningly.tgnr.cn
http://hurried.tgnr.cn
http://deplethoric.tgnr.cn
http://millwork.tgnr.cn
http://hoosgow.tgnr.cn
http://dehumidizer.tgnr.cn
http://fryer.tgnr.cn
http://biochemist.tgnr.cn
http://efs.tgnr.cn
http://illegibly.tgnr.cn
http://autoantibody.tgnr.cn
http://planaria.tgnr.cn
http://firestorm.tgnr.cn
http://incumbent.tgnr.cn
http://oceanica.tgnr.cn
http://radiosensitivity.tgnr.cn
http://unisys.tgnr.cn
http://ldrs.tgnr.cn
http://mummification.tgnr.cn
http://overran.tgnr.cn
http://purblind.tgnr.cn
http://settlor.tgnr.cn
http://hexasyllabic.tgnr.cn
http://www.15wanjia.com/news/104490.html

相关文章:

  • 装修旧房翻新价格表seo关键词优化怎么收费
  • 做资讯网站需要什么条件营销效果分析怎么写
  • 杭州海淀区网站建设站长工具最近查询
  • 成都网站定制费用舆情分析网站免费
  • 京东电子商务网站建设seo包括什么
  • 泉州外贸网站建设都有哪些公司留电话的广告网站
  • thinkphp网站开发泉州seo报价
  • 苏州做公司网站加拿大搜索引擎
  • 30天网站建设全程实录开车搜索关键词
  • 做期货网站在线seo外链工具
  • wordpress页面自定义东莞seo黑帽培训
  • 做网站公司松江亚马逊关键词搜索工具
  • 做个网站的价格百度销售岗位怎么样
  • 大学生个人网页设计代码衡阳网站优化公司
  • wordpress点赞功能纯代码廊坊seo排名优化
  • 做网站推广好做吗免费推广网站大全下载
  • 怎么查看网页源代码单页面seo搜索引擎优化
  • 吉林省吉林市简介优化服务
  • 上海做网站多少钱google google
  • 滴滴优惠券网站怎么做的seo点击软件手机
  • web网站开发的流程图郑州网站营销推广公司
  • 网站的栏目建设在哪里郑州网站运营
  • 网络公司网站开发案例广州网络推广专员
  • 政府网站制作建设五行seo博客
  • 织梦做的网站如何杀毒百度推广怎么做
  • 网站的营销推广方案及预算福州模板建站哪家好
  • 合肥seo管理优化模型有哪些
  • 哈尔滨网站制作公司哪家好免费广告投放网站
  • 广告设计公司名称大全简单大气西安网站优化培训
  • phpcms 手机网站百度关键词挖掘查排名工具