Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Qt_script_int2ip

Paweł Salawa edited this page Apr 13, 2021 · 1 revision

Definition

Language: Qt Script
Plugin for language: ScriptingQt
How to use: Create custom SQL function. Suggested name: int2ip
Function arguments Keep undefined
Function usage: select int2ip(3232235521);
Description: Converts integer representation of IPv4 to the X.X.X.X representation.

Code

The code:

return ( (arguments[0]>>>24) +'.' + (arguments[0]>>16 & 255) +'.' + (arguments[0]>>8 & 255) +'.' + (arguments[0] & 255) );

Clone this wiki locally

AltStyle によって変換されたページ (->オリジナル) /