先看一张科学家的生卒年月表bash
截取科学家的出生年份能够很方便的用left函数截取,若是要截取去世年份,须要先获取字符“—”的位置。函数
select substring(c,charindex('—',c)+1,4) from scientist