我需要将值列表传递给MemSQL过程。 有没有一种方法可以将逗号分隔的整数值从输入字符串转换成表格。
答案 0 :(得分:1)
MemSQL尚不具备将字符串分隔的字符串转换为字符串数组的python字符串<script>
export default {
data() {
return {
editmode: true,
ticketInvoices: {},
vendors: null,
form: new Form({
id: "",
vendor_id: "",
ticket_invoice_no: "",
ticket_invoice_date: "",
ticket_invoice_fares_total: "",
ticket_invoice_grand_total: "",
ticketInvoiceItems: [{
id: "",
ticket_invoice_id: "",
passenger_name: "",
ticket_no: "",
departure_date: "",
fares: "",
sub_total: 0
}]
})
};
},
</script>
之类的功能。在MemSQL 6.5中,最好的方法是使用split
内置函数来做类似的事情。
locate