题解 | #将titles_test表名修改为titles_2017#
将titles_test表名修改为titles_2017
http://www.nowcoder.com/practice/5277d7f92aa746ab8aa42886e5d570d4
mysql的代码是
alter table titles_test rename titles_2017
sqlite的代码是
alter table 'titles_test' rename to 'titles_2017'
将titles_test表名修改为titles_2017
http://www.nowcoder.com/practice/5277d7f92aa746ab8aa42886e5d570d4
mysql的代码是
alter table titles_test rename titles_2017
sqlite的代码是
alter table 'titles_test' rename to 'titles_2017'
相关推荐
 球球与墩墩:这不是前端常考的对象扁平化吗,面试官像是前端出来的
const flattern = (obj) => {
  const res = {};
  const dfs = (curr, path) => {
    if(typeof curr === 'object' && curr !== null) {
      const isArray = Array.isArray(curr);
      for(let key in curr) {
        const newPath = path ? isArray ? `${path}[${key}]` : `${path}.${key}` : key;
        dfs(curr[key], newPath);
      }
    } else {
      res[path] = curr
    }
  }
  dfs(obj);
  return res;
}
球球与墩墩:这不是前端常考的对象扁平化吗,面试官像是前端出来的
const flattern = (obj) => {
  const res = {};
  const dfs = (curr, path) => {
    if(typeof curr === 'object' && curr !== null) {
      const isArray = Array.isArray(curr);
      for(let key in curr) {
        const newPath = path ? isArray ? `${path}[${key}]` : `${path}.${key}` : key;
        dfs(curr[key], newPath);
      }
    } else {
      res[path] = curr
    }
  }
  dfs(obj);
  return res;
} 查看3道真题和解析
查看3道真题和解析