Learn R Programming

RSqlParser (version 1.5)

get_all_select_cols_with_alias: Get the names of the selected columns in the sql statement

Description

This function takes sql statement and returns all the columns selected in the sql statement.

Usage

get_all_select_cols_with_alias(sql)

Arguments

sql

statement

Value

names of columns selected in sql statement

Examples

Run this code
# NOT RUN {
get_all_select_cols_with_alias("Select p from abc where xyz = 5")
# }

Run the code above in your browser using DataLab