I am using MySQL, and I have a function which will accept a col data from a table row, and return a table-valued function. for example, a function like this:
CREATE FUNCTION [dbo].[wordlongerthan4](
@input text
) returns @result table(
pos int,
word varchar,
)
which will return the word longer than 4char and its position.
i want to do a sql something like below
select t.name,wordlongerthan4(t.content) from sometable as t;
on table
------------------------------------------------------------------
| id | name | content |
------------------------------------------------------------------
|1 | my1 | i love something and nothing |
|2 | my2 | It is a sunny day today |
to get the result:
|name | pos | word |
--------------------------------
|my1 |8 |something |
|my1 |22 |nothing |
|my2 |9 |sunny |
|my2 |20 |today |
How could i write the sql?(the function wordlongerthan4 is already there,i only need the sql!)