We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
use demo
stmt, err := sqlparser.Parse fmt.Printf("stmt = %+v\n", stmt) The output "stmt = &{Cache: Comments:[] Distinct: Hints: SelectExprs:[0xc420088e10] From:[0xc420089110 0xc420089140] Where:0xc42000a5c0 GroupBy:[] Having: OrderBy:[] Limit: Lock:}"
How do I get the value in the From please help me
The text was updated successfully, but these errors were encountered:
@feloxx You can get by the following code
fmt.Println(stmt.(*sqlparser.Select).From[0].(*sqlparser.AliasedTableExpr).Expr.(sqlparser.TableName).Name.String())
Sorry, something went wrong.
@goccy thank you
No branches or pull requests
use demo
How do I get the value in the From
please help me
The text was updated successfully, but these errors were encountered: