Home News Contact Us Forum About Us Demos Products F.A.Q.
Shopping Cart
You currently have 0 items in your cart.


Recent Events
  • 31/12/2023 New Year SALE

    We are glad to announce New Year SALE. 25% discount for all our extensions. Use NY24 coupon code. Hurry up the discount is valid till 7 January.

  • 21/11/2023 BLACK FRIDAY 23 is coming

    BIG SALE, 35% discount for all our extensions. Use BF23 coupon code. Hurry up the discount is valid till 27 November.


2Checkout.com, Inc. is an authorized retailer of goods and services provided by ARI Soft. 2CheckOut




Follow us on twitter



Welcome, Guest
Please Login or Register.    Lost Password?

Need Documentation on the SQL side
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: Need Documentation on the SQL side
#27132
Need Documentation on the SQL side 12 Years, 1 Month ago Karma: 0
hi, I have just installed the module; already falling in love with it simply playing with all different options and seeing the potential.

but when it comes to the SQL portion, I feel a little confused. I know some basic sql query command and all that; but, I am not sure what am I expecting here, I mean; should I load one table? can I load multiple table? for the columns, should I be matching those ID with table that I am loading? I see that it provides me some basic variables like user_id or such; is there any more? do you have some samples?

sorry, I know it's a full load of questions

Ringo
Innovational Design
The administrator has disabled public write access.
 
#27136
Re:Need Documentation on the SQL side 12 Years, 1 Month ago Karma: 748
Hello,

If you want to combine data from a different tables, JOIN can be used.

Predefined variables are used to filter results. It can be used in "WHERE" clause in a SELECT SQL query.

Regards,
ARI Soft
The administrator has disabled public write access.
 
#27151
Re:Need Documentation on the SQL side 12 Years, 1 Month ago Karma: 0
cool, I guess I am still feeling lost ....

1st of all, sounds like that little text box full support all SQL command, right?
2nd of all, can I put multiple command lines (with ; to end them and seperate them)
3rd of all, should I run it as I would have in a PHP environment? like running "for" statement, declare variables, etc.

last, but not least, after loading the SQL table, what can i do to match the table with all the columns that's set above? or, is that the point of declaring the column ID? (i.e., the ID field has to match the database table column ID? does it matter if they the module columns order are different from the one in database?)

tho, I am pretty sure I am good to go after you answer all of these questions for me; I am still highly suggesting including some practical sample in your help document (the help file that's included with the module)

Ringo
Innovational Design
The administrator has disabled public write access.
 
#27152
Re:Need Documentation on the SQL side 12 Years, 1 Month ago Karma: 748
Enter a "SELECT" SQL query in "SQL query" parameter. It doesn't accept PHP code or multiple command, but it is possible to use some predefined variables in "WHERE" clause. A sample query:

Code:


SELECT
 id,
 title
FROM
 #__content



Regards,
ARI Soft
The administrator has disabled public write access.
 
Go to topPage: 1