在Sql server中,从表中获取每个json数据行的逗号分隔Json密钥记录

时间:2017-06-21 07:41:26

标签: sql-server

在sql server中,我有products表,其中包含json数据记录,如下所示。我希望表格格式

中每个json行的逗号分隔键记录

输入:

JsonData

ID,ActionType,Add-On-Name,Add-On-Price

Name,Menu Column Location

ActionType,Feature-Option,Features

ID,ActionType,Sub-Add-On-Description,add-on,sub add-on

期望输出:

function logProps(WrappedComponent) {
  return class extends React.Component {
    componentWillReceiveProps(nextProps) {
      console.log('Current props: ', this.props);
      console.log('Next props: ', nextProps);
    }
    render() {
      // Wraps the input component in a container, without mutating it. Good!
      return <WrappedComponent {...this.props} />;
    }
  }
}

注意:
不应为每条记录重复Json密钥,所有json密钥记录都应该在一个表中

0 个答案:

没有答案