MySQL Forums
Forum List  »  MySQL Shell

Re: How to execute util.importTable command several times in MySQL Shell using a variable?
Posted by: Rui Quelhas
Date: March 11, 2020 03:03AM

Hi there,

overlooking the importTable stuff and assuming it is fine (I'm not really familiar with it but you can check https://dev.mysql.com/doc/dev/mysqlsh-api-javascript/8.0/group__util.html#gad03782ff4c067fb767cfb7ef7ef4dab6), there is no "int" type in JavaScript. So, you should be able to create a loop with whatever you want using something like:

for (var i = 0; i < 15; ++i) { /* do something */ }


Hope it helps.

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: How to execute util.importTable command several times in MySQL Shell using a variable?
182
March 11, 2020 03:03AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.