Judging by the view of the quota table. The problem that can be pointed out in one sentence has to be tested N times. What is the reason?

  Because of communication problems, it took at least 2 hours more to complete one function. Problems that can be pointed out in one sentence have to be tested several times. Your team's efficiency is so low.

 Low personal efficiency has little effect, but affects the overall efficiency of the team. This needs to be reflected on. Is there a problem with your personal understanding, or is there a problem with your expression?

--1 先会写测试,再写业务
-- 1.1 写法没错,判断条件有问题。 
select * from st where leavetime > getdate()


---- 额度生效日 convert(varchar(8),EFFECTIVEDATE,12)
--select * from st where convert(varchar(8),EFFECTIVEDATE,12)  > getdate()

--2. 指定查询条件

--- 如何指定查询条件?

--使用where子句来指定条件。
-- 2.1 用比较运算符去实现这个功能 

--1  成绩表 查询学号大于1,并且语文成绩小于99的学生信息.
select cno,yuwen
 from score 
 where cno > 1 and yuwen <= 99

 -- sql语句 
 --1.1 
--获取当前年月日(字符串 8位数字显示):
select  convert(varchar(11),getdate(),112) 
--1 当前日期3.31 大于生效日的数据信息
 select * from limit 
 where convert(varchar(11),getdate(),112)  >  convert(varchar(8),EFFECTIVEDATE,12)

 --1.2 当前日期3.31 小于失效日 2.2 的数据信息有哪些   成立就显示1条数据.
 select * from limit 
 where convert(varchar(11),getdate(),112)  < c

Guess you like

Origin blog.csdn.net/chenggong9527/article/details/123878111