假设我正在开发分支,我需要做一个紧急的错误修正,所以通常,我需要
# on develop
git checkout -b bugfix/blah --from master
但是可以分支而不先跳到掌握
SELECT CODISTRITO + CODMANZANA + CODLOTE AS CODMAN,
SUM(CASE WHEN TYPE = 'ABC' THEN 1 ELSE 0 END) AS ABC,
SUM(CASE WHEN TYPE = 'DEF' THEN 1 ELSE 0 END) AS DEF,
SUM(CASE WHEN TYPE = 'GHI' THEN 1 ELSE 0 END) AS GHI,
SUM(CASE WHEN TYPE = 'JKL' THEN 1 ELSE 0 END) AS JKL
FROM dbo.test
GROUP BY CODISTRITO, CODMANZANA, CODLOTE
答案 0 :(得分:6)
我认为你在谈论这个
puts 'Enter the string that you would like to search'
content = gets.chomp
puts 'What character would you like to find?'
query = gets.chomp
if content.include?(query)
puts "here"
else
puts "not"
end