Table of Contents | ||||||
---|---|---|---|---|---|---|
|
...
This operation only requires one argument:
Argument | Data type |
---|---|
Ip (v4 or v6) mandatory | ip, ip6 |
...
Use the operator select
... as
... and add the operation syntax to create the new column. These are the valid formats of the Geolocated Country with MaxMind GeoIP2 operation:
mm2country(ip)
mm2country(ip6)
Example
Copy the following LINQ script and try the above example on the demo.ecommerce.data
table.
Code Block |
---|
from demo.ecommerce.data select mm2country(clientIpAddress) as countryCode |