我有一个表,其中row,name和eum作为第(1 )列。我想把这张票分成一张新票。列号为1/count(名称)
但我不知道该怎么做。我发现一些函数的结果是table,但是我不能在select或create table中使用这个函数。
我感谢所有的建议。
霍尔格
发布于 2016-11-30 01:25:21
您可以创建空表,然后使用游标拆分和插入可用行。通过使用字符串替换操作,您可以准备用于插入值的动态sql。
动态sql:https://archive.sap.com/discussions/thread/3435270游标:http://help.sap.com/saphelp_hanaplatform/helpdata/en/9d/3b637a5d6d44f288edb2bde73b95cc/content.htm?frameset=/en/c5/9af8fa9ece40f4ba202e12fdacdfdf/frameset.htm¤t_toc=/en/ed/4f384562ce4861b48e22a8be3171e5/plain.htm&node_id=109
https://stackoverflow.com/questions/40865893
复制相似问题